mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 18:14:07 +08:00
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>
This commit is contained in:
parent
b8836c2a4d
commit
c60664dea7
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user