Message ID | 20230707095425.168126-1-quentin@isovalent.com (mailing list archive) |
---|---|
Headers | show |
Series | bpftool: Fix skeletons compilation for older kernels | expand |
Hello: This series was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <andrii@kernel.org>: On Fri, 7 Jul 2023 10:54:21 +0100 you wrote: > At runtime, bpftool may run its own BPF programs to get the pids of > processes referencing BPF programs, or to profile programs. The skeletons > for these programs rely on a vmlinux.h header and may fail to compile when > building bpftool on hosts running older kernels, where some structs or > enums are not defined. In this set, we address this issue by using local > definitions for struct perf_event, struct bpf_perf_link, > BPF_LINK_TYPE_PERF_EVENT (pids.bpf.c) and struct bpf_perf_event_value > (profiler.bpf.c). > > [...] Here is the summary with links: - [bpf-next,v2,1/4] bpftool: use a local copy of perf_event to fix accessing ::bpf_cookie https://git.kernel.org/bpf/bpf-next/c/4cbeeb0dc02f - [bpf-next,v2,2/4] bpftool: define a local bpf_perf_link to fix accessing its fields https://git.kernel.org/bpf/bpf-next/c/67a43462ee24 - [bpf-next,v2,3/4] bpftool: Use a local copy of BPF_LINK_TYPE_PERF_EVENT in pid_iter.bpf.c https://git.kernel.org/bpf/bpf-next/c/44ba7b30e84f - [bpf-next,v2,4/4] bpftool: use a local bpf_perf_event_value to fix accessing its fields https://git.kernel.org/bpf/bpf-next/c/658ac0680131 You are awesome, thank you!