Skip to content

Commit

Permalink
perf build-id: Print debuginfod queries if -v option is used
Browse files Browse the repository at this point in the history
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: Martin Liška <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
marxin authored and acmel committed Aug 12, 2022
1 parent 34575de commit a072a7a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/perf/util/build-id.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a072a7a

Please sign in to comment.