projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dc1e48
)
bpftool: Support BTF_KIND_TYPE_TAG
author
Yonghong Song
<yhs@fb.com>
Fri, 12 Nov 2021 01:26:20 +0000
(17:26 -0800)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 12 Nov 2021 01:41:11 +0000
(17:41 -0800)
Add bpftool support for BTF_KIND_TYPE_TAG.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20211112012620.1505506-1-yhs@fb.com
tools/bpf/bpftool/btf.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/bpf/bpftool/btf.c
b/tools/bpf/bpftool/btf.c
index 223ac76760274d39cf23db0012f38c9eef2cbb10..c7e3b0b0029e503e4f28c25aa02a9ee0d1c82043 100644
(file)
--- a/
tools/bpf/bpftool/btf.c
+++ b/
tools/bpf/bpftool/btf.c
@@
-39,6
+39,7
@@
static const char * const btf_kind_str[NR_BTF_KINDS] = {
[BTF_KIND_DATASEC] = "DATASEC",
[BTF_KIND_FLOAT] = "FLOAT",
[BTF_KIND_DECL_TAG] = "DECL_TAG",
+ [BTF_KIND_TYPE_TAG] = "TYPE_TAG",
};
struct btf_attach_point {
@@
-142,6
+143,7
@@
static int dump_btf_type(const struct btf *btf, __u32 id,
case BTF_KIND_VOLATILE:
case BTF_KIND_RESTRICT:
case BTF_KIND_TYPEDEF:
+ case BTF_KIND_TYPE_TAG:
if (json_output)
jsonw_uint_field(w, "type_id", t->type);
else