Message ID | 20230827152800.1998492-1-yonghong.song@linux.dev (mailing list archive) |
---|---|
State | Accepted |
Commit | 9ae302fe598b73061ab952e3a8cb6657285c1c5c |
Delegated to: | BPF |
Headers | show |
Series | bpf: Add support for local percpu kptr | expand |
diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h index bbab9ad9dc5a..77ceea575dc7 100644 --- a/tools/lib/bpf/bpf_helpers.h +++ b/tools/lib/bpf/bpf_helpers.h @@ -181,6 +181,7 @@ enum libbpf_tristate { #define __ksym __attribute__((section(".ksyms"))) #define __kptr_untrusted __attribute__((btf_type_tag("kptr_untrusted"))) #define __kptr __attribute__((btf_type_tag("kptr"))) +#define __percpu_kptr __attribute__((btf_type_tag("percpu_kptr"))) #define bpf_ksym_exists(sym) ({ \ _Static_assert(!__builtin_constant_p(!!sym), #sym " should be marked as __weak"); \
Add __percpu_kptr macro definition in bpf_helpers.h. Signed-off-by: Yonghong Song <yonghong.song@linux.dev> --- tools/lib/bpf/bpf_helpers.h | 1 + 1 file changed, 1 insertion(+)