Re: [PATCH bpf-next v1 0/4] Modernize resolve_btfids selftest

Jiri Olsa <[email protected]>
Newsgroups gmane.linux.kernel.bpf,gmane.linux.kbuild.devel
Message-ID <ajPlXOE9gyoO3oi1@krava>
On Wed, Jun 17, 2026 at 02:06:15PM -0700, Ihor Solodrai wrote:
> This series updates resolve_btfids selftests to use latest selftest
> helpers API and add kfunc set testing.
> 
> This series was split from a bigger series [1].  It's general selftest
> improvements that don't have to be entangled with resolve_btfids
> development, and makes the main series a bit smaller.
> 
> [1] https://lore.kernel.org/bpf/[email protected]/
> 
> Changes compared to original 4 patches:
>   * various nits from Jiri, Andrii and Emil
>   * in patch #3 (that adds gcc pragma) definitions are moved such that
>     .local BTF_ID_* containers are grouped together and we have a
>     single pragma scope

left one comment, otherwise lgtm

Acked-by: Jiri Olsa <[email protected]>

jirka

> 
> ---
> 
> Ihor Solodrai (4):
>   tools/bpf: Sync btf_ids.h to tools
>   selftests/bpf: Modernize resolve_btfids test scaffolding
>   selftests/bpf: Fix resolve_btfids test reads of BTF ID sets in PIE
>     builds
>   selftests/bpf: Add kfunc set test to resolve_btfids
> 
>  tools/include/linux/btf_ids.h                 |  78 +++++++++-
>  .../selftests/bpf/prog_tests/resolve_btfids.c | 140 ++++++++++++------
>  tools/testing/selftests/bpf/progs/btf_data.c  |  10 ++
>  3 files changed, 177 insertions(+), 51 deletions(-)
> 
> -- 
> 2.54.0
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.