skeleton/pid_iter.bpf.c:47:14: error: incomplete definition of type 'struct bpf_perf_link'
[...]
skeleton/pid_iter.bpf.c:44:9: note: forward declaration of 'struct bpf_perf_link'
struct bpf_perf_link *perf_link;
^
skeleton/pid_iter.bpf.c:48:10: error: incomplete definition of type 'struct bpf_perf_link'
event = BPF_CORE_READ(perf_link, perf_file, private_data);
[...]
skeleton/pid_iter.bpf.c:49:30: error: no member named 'bpf_cookie' in 'struct perf_event'
return BPF_CORE_READ(event, bpf_cookie);
When trying to run
make minimalin theexamples/cdirectory, getting the following errors - the full output in gisthttps://gist.github.com/dmitris/697849eb3c0b80e6f2ca50430cae499b:
Is it related to (or even fixed in) https://lore.kernel.org/bpf/20220421003152.339542-2-alobakin@pm.me/ and
https://lore.kernel.org/bpf/20220421003152.339542-2-alobakin@pm.me/ ?
I got that error with the current rhel8 and Fedora 35 -
Linux mybox.example.com 5.14.10-300.fc35.x86_64 #1 SMP Thu Oct 7 20:48:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux