perf report: Tell the user when a perf.data file has no samples
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Feb 2011 16:40:46 +0000 (14:40 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Feb 2011 16:40:46 +0000 (14:40 -0200)
commit74cfc17dc1a69c37ce6c8a76c1ce84bcb796eb0e
tree81b87743f35b80f30b63a8d5be16c2152934ece1
parent712a4b6049724278121d56aba683151d86c8c35a
perf report: Tell the user when a perf.data file has no samples

[root@emilia ~]# perf report --stdio
The perf.data file has no samples!
[root@emilia ~]#

The TUI shows a popup warning message with the same message.

Reported-by: Ingo Molnar <mingo@elte.hu>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c