From: Martin Liška Date: Fri, 12 Aug 2022 11:43:53 +0000 (+0200) Subject: perf build-id: Print debuginfod queries if -v option is used X-Git-Tag: baikal/aarch64/sdk6.1~3254^2~33 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=8a1e0f0500eb057e276908236e29f2a8d41169ae;p=kernel.git 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: Martin Liška Link: http://lore.kernel.org/lkml/325871cf-b71f-6237-8793-82182272ece8@suse.cz Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c index 0cc68cdd84c88..ec18ed5caf3ec 100644 --- a/tools/perf/util/build-id.c +++ b/tools/perf/util/build-id.c @@ -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,