projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0007ece
)
perf archive: Remove -f from the rm command
author
Irina Tirdea
<
[email protected]
>
Thu, 13 Sep 2012 22:07:42 +0000
(
01:07
+0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 17 Sep 2012 16:10:27 +0000
(13:10 -0300)
In Android, rm does not support the -f parameter.
Remove -f from rm and make sure rm does not fail even if the files to be
removed are not found.
Signed-off-by: Irina Tirdea <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Steven Rostedt <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/perf-archive.sh
patch
|
blob
|
history
diff --git
a/tools/perf/perf-archive.sh
b/tools/perf/perf-archive.sh
index 95b6f8b6177a98e45bc295bf4096b753aab70696..da94179f9ab19fce967ec3094b6a4d5053d3e015 100644
(file)
--- a/
tools/perf/perf-archive.sh
+++ b/
tools/perf/perf-archive.sh
@@
-24,7
+24,7
@@
NOBUILDID=0000000000000000000000000000000000000000
perf buildid-list -i $PERF_DATA --with-hits | grep -v "^$NOBUILDID " > $BUILDIDS
if [ ! -s $BUILDIDS ] ; then
echo "perf archive: no build-ids found"
- rm
-f $BUILDIDS
+ rm
$BUILDIDS || true
exit 1
fi
@@
-40,7
+40,7
@@
while read build_id ; do
done
tar cfj $PERF_DATA.tar.bz2 -C $PERF_BUILDID_DIR -T $MANIFEST
-rm
-f $MANIFEST $BUILDIDS
+rm
$MANIFEST $BUILDIDS || true
echo -e "Now please run:\n"
echo -e "$ tar xvf $PERF_DATA.tar.bz2 -C ~/.debug\n"
echo "wherever you need to run 'perf report' on."