aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/bpf/btf.c
diff options
context:
space:
mode:
authorGravatar Alexei Starovoitov <ast@kernel.org> 2021-10-22 17:04:44 -0700
committerGravatar Alexei Starovoitov <ast@kernel.org> 2021-10-22 17:04:44 -0700
commit1c508843700423f36bead47a78169f313f5668f5 (patch)
treec765ff64bdb2f6a1396171d7a9315cfe5b23ae37 /tools/lib/bpf/btf.c
parentMerge branch 'libbpf: use func name when pinning programs with LIBBPF_STRICT_... (diff)
parentdocs/bpf: Update documentation for BTF_KIND_DECL_TAG typedef support (diff)
downloadlinux-1c508843700423f36bead47a78169f313f5668f5.tar.gz
linux-1c508843700423f36bead47a78169f313f5668f5.tar.bz2
linux-1c508843700423f36bead47a78169f313f5668f5.zip
Merge branch 'bpf: add support for BTF_KIND_DECL_TAG typedef'
Yonghong Song says: ==================== Latest upstream llvm-project added support for btf_decl_tag attributes for typedef declarations ([1], [2]). Similar to other btf_decl_tag cases, func/func_param/global_var/struct/union/field, btf_decl_tag with typedef declaration can carry information from kernel source to clang compiler and then to dwarf/BTF, for bpf verification or other use cases. This patch set added kernel support for BTF_KIND_DECL_TAG to typedef declaration (Patch 1). Additional selftests are added to cover unit testing, dedup, or bpf program usage of btf_decl_tag with typedef. (Patches 2, 3 and 4). The btf documentation is updated to include BTF_KIND_DECL_TAG typedef (Patch 5). [1] https://reviews.llvm.org/D110127 [2] https://reviews.llvm.org/D112259 ==================== Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/btf.c')
0 files changed, 0 insertions, 0 deletions