mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-09 12:20:13 +08:00
libbpf: Probe percpu data feature
libbpf needs a reliable way to distinguish kernels that can support global percpu data from those that cannot. Add a dedicated feature probe, so libbpf can make capability decisions early and fail predictably when global percpu data is unavailable. Signed-off-by: Leon Hwang <leon.hwang@linux.dev> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20260813152324.97937-5-leon.hwang@linux.dev
This commit is contained in:
1 parent
16bcff7098
commit
54fd646c55
2 files changed
+37
No files matched your search
@@ -401,6 +401,8 @@ enum kern_feature_id {
|
||||
FEAT_BTF_LAYOUT,
|
||||
/* Kernel supports BPF syscall common attributes */
|
||||
FEAT_BPF_SYSCALL_COMMON_ATTRS,
|
||||
/* Kernel supports percpu data */
|
||||
FEAT_PERCPU_DATA,
|
||||
__FEAT_CNT,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user