Home
last modified time | relevance | path

Searched hist:"44 ba7b30" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/bpf/bpftool/skeleton/
H A Dpid_iter.bpf.c44ba7b30 Fri Jul 07 04:54:24 CDT 2023 Quentin Monnet <quentin@isovalent.com> bpftool: Use a local copy of BPF_LINK_TYPE_PERF_EVENT in pid_iter.bpf.c

In order to allow the BPF program in bpftool's pid_iter.bpf.c to compile
correctly on hosts where vmlinux.h does not define
BPF_LINK_TYPE_PERF_EVENT (running kernel versions lower than 5.15, for
example), define and use a local copy of the enum value. This requires
LLVM 12 or newer to build the BPF program.

Fixes: cbdaf71f7e65 ("bpftool: Add bpf_cookie to link output")
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230707095425.168126-4-quentin@isovalent.com