[PATCH bpf-next v2 0/2] Add resolve_btfids support for __arena kfunc suffix

Kumar Kartikeya Dwivedi <[email protected]>
Newsgroups org.kernel.vger.bpf
Message-ID <[email protected]>
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)

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
-- 
2.53.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.