You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use valid btf in bpf_program__set_attach_target(prog, 0, ...);
bpf_program__set_attach_target() will always fail with fd=0 (attach to a
kernel symbol) because obj->btf_vmlinux is NULL and there is no way to
set it.
Fix this by explicitly calling libbpf_find_kernel_btf() in the function.
Signed-off-by: Luigi Rizzo <[email protected]>
0 commit comments