diff options
| author | Kui-Feng Lee <[email protected]> | 2024-10-23 23:47:54 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-10-24 17:25:59 +0000 |
| commit | 7aa12b8d9f24e9623effa12a3fc330de056d572e (patch) | |
| tree | c5e167208f45d8bde4e74c8b8a2008b489693b14 /tools/lib/bpf/bpf_helpers.h | |
| parent | bpf: Add uptr support in the map_value of the task local storage. (diff) | |
| download | kernel-7aa12b8d9f24e9623effa12a3fc330de056d572e.tar.gz kernel-7aa12b8d9f24e9623effa12a3fc330de056d572e.zip | |
libbpf: define __uptr.
Make __uptr available to BPF programs to enable them to define uptrs.
Acked-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Kui-Feng Lee <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
| -rw-r--r-- | tools/lib/bpf/bpf_helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h index 80bc0242e8dc..686824b8b413 100644 --- a/tools/lib/bpf/bpf_helpers.h +++ b/tools/lib/bpf/bpf_helpers.h @@ -185,6 +185,7 @@ enum libbpf_tristate { #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 __uptr __attribute__((btf_type_tag("uptr"))) #if defined (__clang__) #define bpf_ksym_exists(sym) ({ \ |
