Skip to content

Commit efc36d6

Browse files
qmonnetanakryiko
authored andcommitted
bpftool: Remove useless #include to <perf-sys.h> from map_perf_ring.c
The header is no longer needed since the event_pipe implementation was updated to rely on libbpf's perf_buffer. This makes bpftool free of dependencies to perf files, and we can update the Makefile accordingly. Fixes: 9b190f1 ("tools/bpftool: switch map event_pipe to libbpf's perf_buffer") Signed-off-by: Quentin Monnet <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent b8f49dc commit efc36d6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tools/bpf/bpftool/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \
7373
-I$(LIBBPF_INCLUDE) \
7474
-I$(srctree)/kernel/bpf/ \
7575
-I$(srctree)/tools/include \
76-
-I$(srctree)/tools/include/uapi \
77-
-I$(srctree)/tools/perf
76+
-I$(srctree)/tools/include/uapi
7877
CFLAGS += -DBPFTOOL_VERSION='"$(BPFTOOL_VERSION)"'
7978
ifneq ($(EXTRA_CFLAGS),)
8079
CFLAGS += $(EXTRA_CFLAGS)

tools/bpf/bpftool/map_perf_ring.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <sys/syscall.h>
2323

2424
#include <bpf/bpf.h>
25-
#include <perf-sys.h>
2625

2726
#include "main.h"
2827

0 commit comments

Comments
 (0)