diff options
author | Martin Liška <mliska@suse.cz> | 2022-04-20 15:32:55 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-04-20 13:36:36 -0300 |
commit | c60664dea70a76cdffb4c4c21b2a09153b41a950 (patch) | |
tree | a991e6c47a7f7366806e0f44a407e22811b6c418 /tools/perf/util/util.c | |
parent | b8836c2a4d4b2abcbefa8bd6a37bdbf075633199 (diff) | |
download | linux-c60664dea70a76cdffb4c4c21b2a09153b41a950.tar.gz linux-c60664dea70a76cdffb4c4c21b2a09153b41a950.tar.bz2 linux-c60664dea70a76cdffb4c4c21b2a09153b41a950.zip |
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>
Diffstat (limited to 'tools/perf/util/util.c')
-rw-r--r-- | tools/perf/util/util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index f8571a66d063..eeb83c80f458 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c @@ -430,6 +430,11 @@ void perf_debuginfod_setup(struct perf_debuginfod *di) setenv("DEBUGINFOD_URLS", di->urls, 1); pr_debug("DEBUGINFOD_URLS=%s\n", getenv("DEBUGINFOD_URLS")); + +#ifndef HAVE_DEBUGINFOD_SUPPORT + if (di->set) + pr_warning("WARNING: debuginfod support requested, but perf is not built with it\n"); +#endif } /* |