-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 182375 b: refs/heads/master c: 2c58517 h: refs/heads/master i: 182373: dae93c8 182371: 0f126bb 182367: ea8b6cb v: v3
- Loading branch information
Arnaldo Carvalho de Melo
authored and
Ingo Molnar
committed
Jan 16, 2010
1 parent
c5aaa8d
commit 0d0f205
Showing
4 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 460848fceffc91652b2d36d19db4ac40d12fb607 | ||
refs/heads/master: 2c5851747bcf751908c02e253cb7582d342b4612 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
# perf archive | ||
# Arnaldo Carvalho de Melo <acme@redhat.com> | ||
|
||
PERF_DATA=perf.data | ||
if [ $# -ne 0 ] ; then | ||
PERF_DATA=$1 | ||
fi | ||
|
||
DEBUGDIR=~/.debug/ | ||
BUILDIDS=$(mktemp /tmp/perf-archive-buildids.XXXXXX) | ||
|
||
perf buildid-list -i $PERF_DATA --with-hits > $BUILDIDS | ||
if [ ! -s $BUILDIDS ] ; then | ||
echo "perf archive: no build-ids found" | ||
rm -f $BUILDIDS | ||
exit 1 | ||
fi | ||
|
||
MANIFEST=$(mktemp /tmp/perf-archive-manifest.XXXXXX) | ||
|
||
cut -d ' ' -f 1 $BUILDIDS | \ | ||
while read build_id ; do | ||
linkname=$DEBUGDIR.build-id/${build_id:0:2}/${build_id:2} | ||
filename=$(readlink -f $linkname) | ||
echo ${linkname#$DEBUGDIR} >> $MANIFEST | ||
echo ${filename#$DEBUGDIR} >> $MANIFEST | ||
done | ||
|
||
tar cfj $PERF_DATA.tar.bz2 -C $DEBUGDIR -T $MANIFEST | ||
rm -f $MANIFEST $BUILDIDS | ||
exit 0 |