linux/tools/perf
Arnaldo Carvalho de Melo 9f591fd76a perf record: Don't try to find buildids in a zero sized file
Fixing this symptom:

 [acme@mica linux-2.6-tip]$ perf record -a -f
   Fatal: Permission error - are you root?

 Bus error
 [acme@mica linux-2.6-tip]$

I.e. if for some reason no data is collected, in this case a non
root user trying to do systemwide profiling, no data will be
collected, and then we end up trying to mmap a zero sized file
and access the file header, b00m.

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: <stable@kernel.org>
LKML-Reference: <1268333592-30872-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-03-11 20:00:32 +01:00
..
bench
Documentation perf: Make the install relative to DESTDIR if specified 2010-03-11 14:08:11 +01:00
scripts
util perf tools: Fix sparse CPU numbering related bugs 2010-03-11 13:36:53 +01:00
.gitignore
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c
builtin-help.c
builtin-kmem.c
builtin-list.c
builtin-lock.c
builtin-probe.c
builtin-record.c perf record: Don't try to find buildids in a zero sized file 2010-03-11 20:00:32 +01:00
builtin-report.c perf report: Add multiple event support 2010-03-10 13:53:50 +01:00
builtin-sched.c
builtin-stat.c perf tools: Fix sparse CPU numbering related bugs 2010-03-11 13:36:53 +01:00
builtin-timechart.c
builtin-top.c perf tools: Fix sparse CPU numbering related bugs 2010-03-11 13:36:53 +01:00
builtin-trace.c
builtin.h
command-list.txt
CREDITS
design.txt
Makefile perf: Make the install relative to DESTDIR if specified 2010-03-11 14:08:11 +01:00
perf-archive.sh
perf.c
perf.h