diff options
author | Ihor Solodrai <ihor.solodrai@linux.dev> | 2025-01-30 12:12:38 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2025-02-05 16:17:59 -0800 |
commit | 53ee0d66d7a6c00358eaffd003cb2c11f6b26e98 (patch) | |
tree | 5cd1d8d1e96b6b44260f6cd3d29ee07430d0d470 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6c2d2a05a762ba3618afa5ed94c11fd8ebc5e435 (diff) |
bpf: Allow kind_flag for BTF type and decl tags
BTF type tags and decl tags now may have info->kflag set to 1,
changing the semantics of the tag.
Change BTF verification to permit BTF that makes use of this feature:
* remove kflag check in btf_decl_tag_check_meta(), as both values
are valid
* allow kflag to be set for BTF_KIND_TYPE_TAG type in
btf_ref_type_check_meta()
Make sure kind_flag is NOT set when checking for specific BTF tags,
such as "kptr", "user" etc.
Modify a selftest checking for kflag in decl_tag accordingly.
Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/bpf/20250130201239.1429648-6-ihor.solodrai@linux.dev
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions