]> git.baikalelectronics.ru Git - kernel.git/commitdiff
bpftool: Remove unused struct event_ring_info
authorYuan Can <yuancan@huawei.com>
Wed, 28 Sep 2022 09:04:40 +0000 (09:04 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 30 Sep 2022 21:09:05 +0000 (14:09 -0700)
After commit 3d5ce88be95a ("tools/bpftool: switch map event_pipe to
libbpf's perf_buffer"), struct event_ring_info is not used any more 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-3-yuancan@huawei.com
tools/bpf/bpftool/map_perf_ring.c

index 6b0c410152defa3ef9e325e74dfa9102147c17bd..1583281d1327e5270ed5885d5ed1fe1f60440430 100644 (file)
 
 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;