bpftool: Change pid_iter.bpf.c to comply with the change of bpf_link_fops.
authorKui-Feng Lee <thinker.li@gmail.com>
Thu, 30 May 2024 06:59:46 +0000 (23:59 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 30 May 2024 22:34:14 +0000 (15:34 -0700)
commitd14c1fac0c9722c4ec79589921c9e798601ca9d5
treec30297f679e7bddf7ce822b59147a4b587158c41
parent1a4b858b6a045828de1b536cfab7819c50864ed6
bpftool: Change pid_iter.bpf.c to comply with the change of bpf_link_fops.

To support epoll, a new instance of file_operations, bpf_link_fops_poll,
has been added for links that support epoll. The pid_iter.bpf.c checks
f_ops for links and other BPF objects. The check should fail for struct_ops
links without this patch.

Acked-by: Quentin Monnet <qmo@kernel.org>
Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Link: https://lore.kernel.org/r/20240530065946.979330-9-thinker.li@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/bpf/bpftool/skeleton/pid_iter.bpf.c