perf report: Warn on callchain output request from non-callchain file
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 5 Jul 2009 05:39:17 +0000 (07:39 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 5 Jul 2009 08:30:21 +0000 (10:30 +0200)
commit91b4eaea93f5be95f4477554399680a53aff2343
tree2a78d12b0798f5ed6e726ccc11f476807bf85088
parenta79f0da80a508448434476b77f9d3d1a469eab67
perf report: Warn on callchain output request from non-callchain file

perf report segfaults while trying to handle callchains from a non
callchain data file.

Instead of a segfault, print a useful message to the user.

Reported-by: Jens Axboe <jens.axboe@oracle.com>
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Anton Blanchard <anton@samba.org>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <1246772361-9960-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-report.c