perf symbols: Check '/tmp/perf-' symbol file ownership
authorPekka Enberg <penberg@kernel.org>
Tue, 9 Aug 2011 19:54:18 +0000 (22:54 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 9 Aug 2011 18:23:08 +0000 (15:23 -0300)
commit981c1252691f4b855f2bb47ea93fb6052ea3aee2
tree7cb1acf6cbaf11c1baf3a474c891a4798a8bbcda
parent580cabed88ebc631e740b16010f2fa6ba882652f
perf symbols: Check '/tmp/perf-' symbol file ownership

The external symbol files are generated by JIT compilers, for example, but we
need to make sure they're ours before injecting them to 'perf report'.

Requested-by: Ingo Molnar <mingo@elte.hu>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1312919658-17158-1-git-send-email-penberg@kernel.org
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c