Re: [PATCH bpf-next v2 0/2] Add resolve_btfids support for __arena kfunc suffix
Ihor Solodrai <[email protected]>
| Newsgroups | org.kernel.vger.bpf |
|---|---|
| Message-ID | <[email protected]> |
On 8/12/26 12:38 PM, Kumar Kartikeya Dwivedi wrote: > Use __arena/__arena__nullable suffixes to emit address_space(1) > annotations on kfunc definitions in vmlinux.h. See commits for details. > > Changelog: > ---------- > v1 -> v2 > v1: https://lore.kernel.org/bpf/[email protected] > > * Avoid enumerating all the ways resolve_btfids can emit the > "address_space(1)" attribute in its header comment and in kfuncs.rst. > (Ihor) > * Drop the kfunc_has_arena_arg() helper: add_arena_tagged_proto() > returns the original prototype when nothing needs tagging, so it can > be invoked unconditionally for every kfunc. (Ihor) > * Add resolve_btfids selftest cases with mixed tagged and untagged > arguments, and a kfunc that combines the KF_ARENA_RET flag with > suffixed arena arguments. (Ihor) For the series: Acked-by: Ihor Solodrai <[email protected]> Thanks! > > Kumar Kartikeya Dwivedi (2): > resolve_btfids: Emit arena attributes from kfunc parameter suffixes > selftests/bpf: Test resolve_btfids arena argument suffixes > > Documentation/bpf/kfuncs.rst | 4 +- > tools/bpf/resolve_btfids/main.c | 72 +++++++++++++------ > .../selftests/bpf/prog_tests/resolve_btfids.c | 41 ++++++----- > tools/testing/selftests/bpf/progs/btf_data.c | 20 ++++++ > 4 files changed, 99 insertions(+), 38 deletions(-) > > > base-commit: 3a59f11e0f989bdd637c87151992605a6559a7cb