aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/bpf
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2024-03-07 17:08:04 -0800
committerAndrii Nakryiko <[email protected]>2024-03-11 15:37:24 -0700
commit2edc3de6fb650924a87fffebebc3b7572cbf6e38 (patch)
tree507c3f99582f9326e792ab0a5078e424f1902520 /tools/lib/bpf
parent6082b6c328b5486da2b356eae94b8b83c98b5565 (diff)
bpf: Recognize btf_decl_tag("arg: Arena") as PTR_TO_ARENA.
In global bpf functions recognize btf_decl_tag("arg:arena") as PTR_TO_ARENA. Note, when the verifier sees: __weak void foo(struct bar *p) it recognizes 'p' as PTR_TO_MEM and 'struct bar' has to be a struct with scalars. Hence the only way to use arena pointers in global functions is to tag them with "arg:arena". Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Kumar Kartikeya Dwivedi <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf')
0 files changed, 0 insertions, 0 deletions