Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf archive: Remove -f from the rm command

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 <irina.tirdea@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1347574063-22521-4-git-send-email-irina.tirdea@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Irina Tirdea and committed by
Arnaldo Carvalho de Melo
73eb422c 0007ecea

+2 -2
+2 -2
tools/perf/perf-archive.sh
··· 24 24 perf buildid-list -i $PERF_DATA --with-hits | grep -v "^$NOBUILDID " > $BUILDIDS 25 25 if [ ! -s $BUILDIDS ] ; then 26 26 echo "perf archive: no build-ids found" 27 - rm -f $BUILDIDS 27 + rm $BUILDIDS || true 28 28 exit 1 29 29 fi 30 30 ··· 40 40 done 41 41 42 42 tar cfj $PERF_DATA.tar.bz2 -C $PERF_BUILDID_DIR -T $MANIFEST 43 - rm -f $MANIFEST $BUILDIDS 43 + rm $MANIFEST $BUILDIDS || true 44 44 echo -e "Now please run:\n" 45 45 echo -e "$ tar xvf $PERF_DATA.tar.bz2 -C ~/.debug\n" 46 46 echo "wherever you need to run 'perf report' on."