summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorEmil Tsalapatis <emil@etsalapatis.com>2026-06-02 03:41:15 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-06-02 04:42:33 +0300
commita0fa68d8ce759dbf6aaf19a043ddd77a2128c26c (patch)
treea80fc1ef132f3f41c541e985003c381255e767ec /include/linux/debugobjects.h
parentb6aa0abf9fb92789598dbf0d1b8f30b8071badbe (diff)
downloadlinux-a0fa68d8ce759dbf6aaf19a043ddd77a2128c26c.tar.xz
selftests/bpf: libarena: Add "arena" BTF type tag to __arena qualifier
The arena qualifier currently designates its associated type as belonging to address space 1. This property affects code generation, but is not reflected in the BTF information of the function. This lack of information at the BTF level prevents us from returning arena pointers from global subprograms. Subprogs cannot return any data structure more complex than a scalar, so pointers to structs are rejected as a return type. We have no way of marking the return type as a pointer to an arena, which is safe provided the two subprogs have the same arena. Expand the __arena qualifier to also attach a BTF type tag to the type. This lets us determine whether a variable belongs to an arena from its type alone through BTF parsing. Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Link: https://lore.kernel.org/r/20260602004120.17087-2-emil@etsalapatis.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions