bpftool: remove useless #include to <perf-sys.h> from map_perf_ring.c
Subsystems (4)
PATCH 1/1 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 9b190f185d2f ("tools/bpftool: switch map event_pipe to libbpf's perf_buffer")
Signed-off-by Quentin Monnet <[email protected]>
--- tools/bpf/bpftool/Makefile | 3 +-- tools/bpf/bpftool/map_perf_ring.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)
tools/bpf/bpftool/Makefile +1 -2
@@ -73,8 +73,7 @@ CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \ -I$(LIBBPF_INCLUDE) \ -I$(srctree)/kernel/bpf/ \ -I$(srctree)/tools/include \ - -I$(srctree)/tools/include/uapi \ - -I$(srctree)/tools/perf + -I$(srctree)/tools/include/uapi CFLAGS += -DBPFTOOL_VERSION='"$(BPFTOOL_VERSION)"' ifneq ($(EXTRA_CFLAGS),) CFLAGS += $(EXTRA_CFLAGS)
tools/bpf/bpftool/map_perf_ring.c +0 -1
@@ -22,7 +22,6 @@#include <sys/syscall.h> #include <bpf/bpf.h> -#include <perf-sys.h> #include "main.h"
Signature · 1 line
2.30.2
Quoted 8 lines · Quentin Monnet
The header is no longer needed since the
event_pipeimplementation was updated to rely on libbpf'sperf_buffer. This makes bpftool free of dependencies to perf files, and we can update theMakefileaccordingly.Fixes 9b190f185d2f ("tools/bpftool: switch map event_pipe to libbpf's perf_buffer")Signed-off-by Quentin Monnet <[email protected]>---
Great, thanks. It's in bpf-next.
Quoted 33 lines
tools/bpf/bpftool/Makefile | 3 +-- tools/bpf/bpftool/map_perf_ring.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)tools/bpf/bpftool/Makefile +1
-2@@ -73,8 +73,7 @@ CFLAGS += -DPACKAGE='"bpftool"' -D__EXPORTED_HEADERS__ \ -I$(LIBBPF_INCLUDE) \ -I$(srctree)/kernel/bpf/ \ -I$(srctree)/tools/include \ - -I$(srctree)/tools/include/uapi \ - -I$(srctree)/tools/perf + -I$(srctree)/tools/include/uapi CFLAGS += -DBPFTOOL_VERSION='"$(BPFTOOL_VERSION)"' ifneq ($(EXTRA_CFLAGS),) CFLAGS += $(EXTRA_CFLAGS)tools/bpf/bpftool/map_perf_ring.c +0
-2@@ -22,7 +22,6 @@#include <sys/syscall.h> #include <bpf/bpf.h> -#include <perf-sys.h> #include "main.h" --2.30.2