diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2024-07-17 20:47:35 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-07-17 23:13:59 +0300 |
commit | 37ac347f87b616525e0fd397cfc9a163328173aa (patch) | |
tree | 983e9da7f78b2c808709dbacfcc4bb35aaadd896 /tools/perf | |
parent | 7a2fb5619cc1fb53cb8784154d5ef2bd99997436 (diff) | |
download | linux-37ac347f87b616525e0fd397cfc9a163328173aa.tar.xz |
perf build: Warn if libtracefs is not found
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Tested-by: Thorsten Leemhuis <linux@leemhuis.info>
Tested-by: Leo Yan <leo.yan@arm.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Cc: linux-trace-devel@vger.kernel.org
Link: https://lore.kernel.org/r/20240717174739.186988-2-amadio@gentoo.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/Makefile.config | 2 |
1 files changed, 2 insertions, 0 deletions
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 |