]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf tools: do not complain if root is owning perf.data
authorPierre Habouzit <pierre.habouzit@intersec.com>
Thu, 17 Sep 2009 07:47:09 +0000 (09:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:29 +0000 (09:32 -0700)
commitc37689d1ffdc318528029da35c24461b34fc05ca
tree74af6060cdd468ae031eec5ebebc7be53c6f92f1
parent0f71d95b3a9e64cbfe10b9d3faeed465353ff369
perf tools: do not complain if root is owning perf.data

commit 119e7a22bb70d84849384e5113792cd45afa4f85 upstream.

This improves patch fa6963b24 so that perf.data stuff that has
been dumped as root can be read (annotate/report) by a user
without the use of the --force.

Rationale is that root has plenty of ways to screw us (usually)
that do not require twisted schemes involving specially
crafting a perf.data.

Signed-off-by: Pierre Habouzit <pierre.habouzit@intersec.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20090827075902.GF19653@laphroaig.corp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
tools/perf/builtin-annotate.c
tools/perf/builtin-report.c