Commit 37ac347f authored by Guilherme Amadio's avatar Guilherme Amadio Committed by Namhyung Kim

perf build: Warn if libtracefs is not found

Signed-off-by: default avatarGuilherme Amadio <amadio@gentoo.org>
Tested-by: default avatarThorsten Leemhuis <linux@leemhuis.info>
Tested-by: default avatarLeo Yan <leo.yan@arm.com>
Acked-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Cc: linux-trace-devel@vger.kernel.org
Link: https://lore.kernel.org/r/20240717174739.186988-2-amadio@gentoo.orgSigned-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 7a2fb561
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment