Skip to contentSkip to conversation

perf buildid-cache: Add option to show build ids that are missing in the cache

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jan 24, 2013 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  fbb6976c2f7a6ab2c4d8511181d686f5f2aaf476
Gitweb:     http://git.kernel.org/tip/fbb6976c2f7a6ab2c4d8511181d686f5f2aaf476
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Fri, 7 Dec 2012 16:28:27 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Sun, 9 Dec 2012 08:46:08 -0300

perf buildid-cache: Add option to show build ids that are missing in the cache

This will allow to connect with services being put in place by distros such as Fedora, where one can retrieve DSOs by their build-id.

Example usage:

for buildid in $(perf buildid-cache --missing perf.data | cut -d' ' -f1) ; do
echo "trying to get $buildid"
wget -q https://darkserver.fedoraproject.org/buildids/$buildid
cat $buildid ; echo
rm -f $buildid
done

Now its just a matter of some porcelain to get the details provided by such a service, retrieve the file and use 'perf buildid-cache --add $FILE' to insert it in the cache, then use 'perf report' or 'annotate' that will find the required files in the cache.

More information about the darkserver service at:

https://darkserver.fedoraproject.org/

Cc David Ahern <[email protected]>
Cc Frank Eigler <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Kushal Das <[email protected]>
Cc Mark Wielaard <[email protected]>
Cc Mike Galbraith <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Stephane Eranian <[email protected]>
---
 tools/perf/Documentation/perf-buildid-cache.txt |  3 ++
 tools/perf/builtin-buildid-cache.c              | 48 +++++++++++++++++++++++--
 2 files changed, 49 insertions(+), 2 deletions(-)
tools/perf/Documentation/perf-buildid-cache.txt +3 -0
index c105770..8e798ba 100644
@@ -24,6 +24,9 @@ OPTIONS
 -r::
 --remove=::
         Remove specified file from the cache.
+-M::
+--missing=:: 
+	List missing build ids in the cache for the specified file.
 -v::
 --verbose::
 	Be more verbose.
tools/perf/builtin-buildid-cache.c +46 -2

76 lines not on this page · raw message