summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2021-05-10 09:49:17 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-05-21 22:47:40 +0300
commitefb0b2328196d78706a2d63c13802f45e8b87090 (patch)
tree1a496463b0f57331a26765978ade3943aaba4da0 /tools/perf
parent8df12cbc0f9067f91b3da0f0ecb344c0a4ed4070 (diff)
downloadlinux-efb0b2328196d78706a2d63c13802f45e8b87090.tar.xz
perf build: Improve error message for old/missing clang
clang is required to build perf with BUILD_BPF_SKEL=1. Improve the error message to highlight that: 1) clang could be either missing or too old; 2) clang is only required with BUILD_BPF_SKEL=1. Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Song Liu <song@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/Makefile.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
index 406a9519145e..829e0498bd51 100644
--- a/tools/perf/Makefile.config
+++ b/tools/perf/Makefile.config
@@ -635,7 +635,7 @@ endif
ifdef BUILD_BPF_SKEL
$(call feature_check,clang-bpf-co-re)
ifeq ($(feature-clang-bpf-co-re), 0)
- dummy := $(error Error: clang too old. Please install recent clang)
+ dummy := $(error Error: clang too old/not installed. Please install recent clang to build with BUILD_BPF_SKEL)
endif
$(call detected,CONFIG_PERF_BPF_SKEL)
CFLAGS += -DHAVE_BPF_SKEL