diff options
author | Quentin Monnet <[email protected]> | 2023-07-07 10:54:24 +0100 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2023-07-10 15:29:20 -0700 |
commit | 44ba7b30e84fb40da2295e85a6d209e199fdc977 (patch) | |
tree | da2a7c18986fd6c0bdb576626c74794dcc31ca1c /drivers/fpga/fpga-mgr.c | |
parent | 67a43462ee2405c94e985a747bdcb8e3a0d66203 (diff) |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions