Re: [RFC bpf-next v4 5/6] libbpf: define __uptr.

Kui-Feng Lee
2024-08-28T17:53:24Z

Thanks for the review.

On 8/27/24 16:13, Andrii Nakryiko wrote:
> On Fri, Aug 16, 2024 at 12:12 PM Kui-Feng Lee <thinker.li@gmail.com> wrote:
>>
>> Make __uptr available to BPF programs to enable them to define uptrs.
>>
>> Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
>> ---
>> tools/lib/bpf/bpf_helpers.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>
> Acked-by: Andrii Nakryiko <andrii@kernel.org>
>
>> diff --git a/tools/lib/bpf/bpf_helpers.h b/tools/lib/bpf/bpf_helpers.h
>> index 305c62817dd3..7ff9d947b976 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) ({ \
>> --
>> 2.34.1
>>