Commit a072a7a0 authored by Martin Liška's avatar Martin Liška Committed by Arnaldo Carvalho de Melo

perf build-id: Print debuginfod queries if -v option is used

When ending a 'perf record' session, the querying of a debuginfod server
can take quite some time. Inform a user about it when -v options is
used.
Signed-off-by: default avatarMartin Liška <mliska@suse.cz>
Link: http://lore.kernel.org/lkml/325871cf-b71f-6237-8793-82182272ece8@suse.czSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 34575ded
......@@ -653,7 +653,11 @@ static char *build_id_cache__find_debug(const char *sbuild_id,
#ifdef HAVE_DEBUGINFOD_SUPPORT
if (realname == NULL) {
debuginfod_client* c = debuginfod_begin();
debuginfod_client* c;
pr_debug("Downloading debug info with build id %s\n", sbuild_id);
c = debuginfod_begin();
if (c != NULL) {
int fd = debuginfod_find_debuginfo(c,
(const unsigned char*)sbuild_id, 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment