perf buildid-cache: Add option to show build ids that are missing in the cache
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/
--- 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
@@ -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