projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8836c2
)
perf tools: Print warning when HAVE_DEBUGINFOD_SUPPORT is not set and user tries...
author
Martin Liška
<mliska@suse.cz>
Wed, 20 Apr 2022 13:32:55 +0000
(15:32 +0200)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 20 Apr 2022 16:36:36 +0000
(13:36 -0300)
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>
tools/perf/util/util.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/util.c
b/tools/perf/util/util.c
index f8571a66d063f9cacf0aaf49f4de49bc1ee31900..eeb83c80f45817222becc27d6fcee19c3b10e882 100644
(file)
--- 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
}
/*