Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf llvm: Add debug hint message about missing kernel-devel package

To help in debugging, add this extra message:

detect_kbuild_dir: Couldn't find "/lib/modules/5.4.20-200.fc31.x86_64/build/include/generated/autoconf.h", missing kernel-devel package?.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+2
+2
tools/perf/util/llvm-utils.c
··· 265 265 return -ENOMEM; 266 266 return 0; 267 267 } 268 + pr_debug("%s: Couldn't find \"%s\", missing kernel-devel package?.\n", 269 + __func__, autoconf_path); 268 270 free(autoconf_path); 269 271 return -ENOENT; 270 272 }