Re: [PATCH bpf-next v7 05/11] libbpf: Probe percpu data feature
From: Leon Hwang
Date: Wed Jun 24 2026 - 00:12:23 EST
On 24/6/26 06:45, Andrii Nakryiko wrote:
> On Mon, Jun 22, 2026 at 7:37 AM Leon Hwang <leon.hwang@xxxxxxxxx> wrote:
>>
>> 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@xxxxxxxxx>
>> ---
>> tools/lib/bpf/features.c | 35 +++++++++++++++++++++++++++++++++
>> tools/lib/bpf/libbpf_internal.h | 2 ++
>> 2 files changed, 37 insertions(+)
>>
>
> lgtm
>
> Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx>
>
Thanks for your review and Acked-by.
Leon