diff options
author | Yonghong Song <yonghong.song@linux.dev> | 2023-08-27 08:28:00 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii.nakryiko@gmail.com> | 2023-09-15 15:57:14 -0700 |
commit | 332198af03c6e65201641561cfaa93a0f26d6f84 (patch) | |
tree | f2128ef31b638e0650ec5b64d6847958c31277f7 | |
parent | 2dbdd3b56490a1da1650d2722fb19282b2714202 (diff) | |
download | libbpf-332198af03c6e65201641561cfaa93a0f26d6f84.tar.gz |
libbpf: Add __percpu_kptr macro definition
Add __percpu_kptr macro definition in bpf_helpers.h.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20230827152800.1998492-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
-rw-r--r-- | src/bpf_helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bpf_helpers.h b/src/bpf_helpers.h index bbab9ad..77ceea5 100644 --- a/src/bpf_helpers.h +++ b/src/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"); \ |