summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/extable.c
diff options
context:
space:
mode:
authorAndy Isaacson <adi@hexapodia.org>2010-06-11 20:36:15 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-06-17 13:55:54 -0300
commit0f2c3de2ba110626515234d5d584fb1b0c0749a2 (patch)
treee03dfb35a8cade9258f72d097f48ef49ac1a14c4 /arch/x86/mm/extable.c
parent84c104ad429c8a474b93dd374815d1c238032fa8 (diff)
downloadop-kernel-dev-0f2c3de2ba110626515234d5d584fb1b0c0749a2.zip
op-kernel-dev-0f2c3de2ba110626515234d5d584fb1b0c0749a2.tar.gz
perf session: fix error message on failure to open perf.data
If we cannot open our data file, print strerror(errno) for a more comprehensible error message; and only suggest 'perf record' on ENOENT. In particular, this fixes the nonsensical advice when: % sudo perf record sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.009 MB perf.data (~381 samples) ] % perf trace failed to open file: perf.data (try 'perf record' first) % Cc: Ingo Molnar <mingo@elte.hu> LPU-Reference: <20100612033615.GA24731@hexapodia.org> Signed-off-by: Andy Isaacson <adi@hexapodia.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'arch/x86/mm/extable.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud