Re: [PATCH bpf-next v9 2/9] libbpf: Add support for extended bpf syscall

From: Andrii Nakryiko

Date: Wed Feb 04 2026 - 14:49:36 EST


On Mon, Feb 2, 2026 at 6:41 AM Leon Hwang <leon.hwang@xxxxxxxxx> wrote:
>
> To support the extended BPF syscall introduced in the previous commit,
> introduce the following internal APIs:
>
> * 'sys_bpf_ext()'
> * 'sys_bpf_ext_fd()'
> They wrap the raw 'syscall()' interface to support passing extended
> attributes.
> * 'probe_sys_bpf_ext()'
> Check whether current kernel supports the BPF syscall common attributes.
>
> Signed-off-by: Leon Hwang <leon.hwang@xxxxxxxxx>
> ---
> tools/lib/bpf/bpf.c | 36 +++++++++++++++++++++++++++++++++
> tools/lib/bpf/features.c | 8 ++++++++
> tools/lib/bpf/libbpf_internal.h | 3 +++
> 3 files changed, 47 insertions(+)
>

LGTM

Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

[...]