[PATCH v3 1/5] perf build: Warn if libtracefs is not found
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: [PATCH v3 1/5] perf build: Warn if libtracefs is not found
- From: Guilherme Amadio <amadio@xxxxxxxxxx>
- Date: Wed, 17 Jul 2024 19:47:35 +0200
- Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, Ian Rogers <irogers@xxxxxxxxxx>, Thorsten Leemhuis <linux@xxxxxxxxxxxxx>, Leo Yan <leo.yan@xxxxxxx>, linux-perf-users@xxxxxxxxxxxxxxx, linux-trace-devel@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- In-reply-to: <20240717174739.186988-1-amadio@gentoo.org>
- References: <20240717123147.17169873@rorschach.local.home> <20240717174739.186988-1-amadio@gentoo.org>
Signed-off-by: Guilherme Amadio <amadio@xxxxxxxxxx>
---
tools/perf/Makefile.config | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index a4829b6532d8..44f010b9f562 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -1206,6 +1206,8 @@ ifneq ($(NO_LIBTRACEEVENT),1)
LIBTRACEFS_VERSION_3 := $(word 3, $(subst ., ,$(LIBTRACEFS_VERSION)))
LIBTRACEFS_VERSION_CPP := $(shell expr $(LIBTRACEFS_VERSION_1) \* 255 \* 255 + $(LIBTRACEFS_VERSION_2) \* 255 + $(LIBTRACEFS_VERSION_3))
CFLAGS += -DLIBTRACEFS_VERSION=$(LIBTRACEFS_VERSION_CPP)
+ else
+ $(warning libtracefs is missing. Please install libtracefs-dev/libtracefs-devel)
endif
endif
--
2.39.3
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]