From 63101636853f5aa207a64ad9cc6dc2741613517e Mon Sep 17 00:00:00 2001 From: grantseltzer Date: Fri, 24 Jun 2022 15:39:25 -0400 Subject: [PATCH] libbpf: Update to libbpf v0.8.0 (#175) * Update to libbpf v0.8.0 * Remove deprecated function, use BPFProg.SetProgramType() Signed-off-by: grantseltzer --- libbpf | 2 +- libbpfgo.go | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/libbpf b/libbpf index 2cd2d03f..86eb0986 160000 --- a/libbpf +++ b/libbpf @@ -1 +1 @@ -Subproject commit 2cd2d03f63242c048a896179398c68d2dbefe3d6 +Subproject commit 86eb09863c1c0177e99c2c703092042d3cdba910 diff --git a/libbpfgo.go b/libbpfgo.go index 50200d09..0f0d97ec 100644 --- a/libbpfgo.go +++ b/libbpfgo.go @@ -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")`