BPF List
 help / color / mirror / Atom feed
* kfunc use newbie question
@ 2023-10-30  9:35 Jiri Pirko
  2023-10-30 10:14 ` Jiri Olsa
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Pirko @ 2023-10-30  9:35 UTC (permalink / raw)
  To: bpf

Hi BPF :)

I'm trying to use bpf_dynptr_from_skb() kfunc in my program. I compiled
it with having following declaration in the bpf .c file:
extern int bpf_dynptr_from_skb(struct __sk_buff *skb, __u64 flags,
                               struct bpf_dynptr *ptr__uninit) __ksym;

I have all "BPF/BTF" kernel config options on. During load,
I'm still getting:

libbpf: failed to find BTF for extern 'bpf_dynptr_from_skb': -3

I'm pretty much clueless about what may be wrong. Documentation didn't
help me either :/

Any idea what I may be doing wrong?

Thanks

Jiri

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-30 13:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30  9:35 kfunc use newbie question Jiri Pirko
2023-10-30 10:14 ` Jiri Olsa
2023-10-30 11:02   ` Jiri Pirko
2023-10-30 13:19     ` Jiri Olsa
2023-10-30 13:45       ` Jiri Pirko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox