perf report: Print more expressive message in case of file open error
authorIngo Molnar <mingo@elte.hu>
Sun, 7 Jun 2009 15:58:23 +0000 (17:58 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 7 Jun 2009 15:58:23 +0000 (17:58 +0200)
commita14832ff977e78d1982cdf78cdabb1f2320d9ac8
tree84cb8282d4237f17d8c9ff50919947d1323f811c
parent30c806a094493beb7691bc7957dfa02dee96230a
perf report: Print more expressive message in case of file open error

Before:

 $ perf report
 failed to open file: No such file or directory

After:

 $ perf report
  failed to open file: perf.data  (try 'perf record' first)

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-report.c