Skip to content

Commit

Permalink
libbpf: Update to libbpf v0.8.0 (#175)
Browse files Browse the repository at this point in the history
* Update to libbpf v0.8.0

* Remove deprecated function, use BPFProg.SetProgramType() 

Signed-off-by: grantseltzer <grantseltzer@gmail.com>
  • Loading branch information
grantseltzer committed Jun 24, 2022
1 parent 0046dd6 commit 6310163
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions libbpfgo.go
Expand Up @@ -1257,14 +1257,6 @@ func (p *BPFProg) SetAutoload(autoload bool) error {
return nil
}

func (p *BPFProg) SetTracepoint() error {
ret, errC := C.bpf_program__set_tracepoint(p.prog)
if ret != 0 {
return fmt.Errorf("failed to set bpf program as tracepoint: %w", errC)
}
return nil
}

// AttachGeneric is used to attach the BPF program using autodetection
// for the attach target. You can specify the destination in BPF code
// via the SEC() such as `SEC("fentry/some_kernel_func")`
Expand Down

0 comments on commit 6310163

Please sign in to comment.