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

perf tools: Print warning when HAVE_DEBUGINFOD_SUPPORT is not set and user tries to use debuginfod support

When one requests debuginfod, either via --debuginfod option, or with a
perf-config value, complain when perf is not built with it.

Signed-off-by: Martin Liška <mliska@suse.cz>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lore.kernel.org/lkml/35bae747-3951-dc3d-a66b-abf4cebcd9cb@suse.cz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Martin Liška and committed by
Arnaldo Carvalho de Melo
c60664de b8836c2a

+5
+5
tools/perf/util/util.c
··· 430 430 setenv("DEBUGINFOD_URLS", di->urls, 1); 431 431 432 432 pr_debug("DEBUGINFOD_URLS=%s\n", getenv("DEBUGINFOD_URLS")); 433 + 434 + #ifndef HAVE_DEBUGINFOD_SUPPORT 435 + if (di->set) 436 + pr_warning("WARNING: debuginfod support requested, but perf is not built with it\n"); 437 + #endif 433 438 } 434 439 435 440 /*