projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34575de
)
perf build-id: Print debuginfod queries if -v option is used
author
Martin Liška
<mliska@suse.cz>
Fri, 12 Aug 2022 11:43:53 +0000
(13:43 +0200)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Fri, 12 Aug 2022 13:27:20 +0000
(10:27 -0300)
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 <mliska@suse.cz>
Link:
http://lore.kernel.org/lkml/325871cf-b71f-6237-8793-82182272ece8@suse.cz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/build-id.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/build-id.c
b/tools/perf/util/build-id.c
index 0cc68cdd84c88cc1ec1c47c2e7dcf76547671bc8..ec18ed5caf3ece94fa84a4fec15124c10c1ad226 100644
(file)
--- 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,