diff options
author | Alexei Starovoitov <ast@kernel.org> | 2024-03-08 04:08:04 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-03-12 01:37:24 +0300 |
commit | 2edc3de6fb650924a87fffebebc3b7572cbf6e38 (patch) | |
tree | 507c3f99582f9326e792ab0a5078e424f1902520 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6082b6c328b5486da2b356eae94b8b83c98b5565 (diff) | |
download | linux-2edc3de6fb650924a87fffebebc3b7572cbf6e38.tar.xz |
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 <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/20240308010812.89848-7-alexei.starovoitov@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions