Skip to content

Commit

Permalink
Remove deprecated function, we have BPFProg.SetProgramType() to use i…
Browse files Browse the repository at this point in the history
…nstead

Signed-off-by: grantseltzer <grantseltzer@gmail.com>
  • Loading branch information
grantseltzer committed Jun 23, 2022
1 parent 0017ee7 commit 18c9641
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libbpfgo.go
Expand Up @@ -1233,14 +1233,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 18c9641

Please sign in to comment.