projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a8921b
)
bpftool: Remove unused struct btf_attach_point
author
Yuan Can
<yuancan@huawei.com>
Wed, 28 Sep 2022 09:04:39 +0000
(09:04 +0000)
committer
Andrii Nakryiko
<andrii@kernel.org>
Fri, 30 Sep 2022 21:08:40 +0000
(14:08 -0700)
After commit
2828d0d75b73
("bpftool: Switch to libbpf's hashmap for
programs/maps in BTF listing"), struct btf_attach_point is not used
anymore and can be removed as well.
Signed-off-by: Yuan Can <yuancan@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20220928090440.79637-2-yuancan@huawei.com
tools/bpf/bpftool/btf.c
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/btf.c
b/tools/bpf/bpftool/btf.c
index 0744bd1150be72a32c2ed9bbcef937319261c5ef..64411fe49a663d72b61be1041ed99dd5502fbea0 100644
(file)
--- a/
tools/bpf/bpftool/btf.c
+++ b/
tools/bpf/bpftool/btf.c
@@
-43,11
+43,6
@@
static const char * const btf_kind_str[NR_BTF_KINDS] = {
[BTF_KIND_ENUM64] = "ENUM64",
};
-struct btf_attach_point {
- __u32 obj_id;
- __u32 btf_id;
-};
-
static const char *btf_int_enc_str(__u8 encoding)
{
switch (encoding) {