diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-09-30 14:08:26 -0700 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-09-30 14:09:16 -0700 |
commit | 2ade1cd95b8d4cedc0eeacac1998a441fa285ab6 (patch) | |
tree | 9f226e24b1c63834518d64645222548e9150b716 | |
parent | 5a8921ba96ceaec0c00c8855e48940d2739c5c3b (diff) | |
parent | f95a479797dc2c65fdf2809a7c388e7a9e2bc853 (diff) |
Merge branch 'tools: bpftool: Remove unused struct'
Yuan Can says:
====================
This series contains two cleanup patches, remove unused struct.
====================
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
-rw-r--r-- | tools/bpf/bpftool/btf.c | 5 | ||||
-rw-r--r-- | tools/bpf/bpftool/map_perf_ring.c | 7 |
2 files changed, 0 insertions, 12 deletions
diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c index 0744bd1150be..64411fe49a66 100644 --- 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) { diff --git a/tools/bpf/bpftool/map_perf_ring.c b/tools/bpf/bpftool/map_perf_ring.c index 6b0c410152de..1583281d1327 100644 --- a/tools/bpf/bpftool/map_perf_ring.c +++ b/tools/bpf/bpftool/map_perf_ring.c @@ -29,13 +29,6 @@ static volatile bool stop; -struct event_ring_info { - int fd; - int key; - unsigned int cpu; - void *mem; -}; - struct perf_event_sample { struct perf_event_header header; __u64 time; |