diff options
author | David Ahern <[email protected]> | 2011-01-09 11:21:12 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-01-10 11:34:53 -0200 |
commit | 5a3446bc648d86a99a895e93d28d7df00bbbfb3c (patch) | |
tree | bc292838c295c6ce6918e485a0454d9a0f1f51f2 /tools/perf/util/trace-event-scripting.c | |
parent | e462dc553ea5e09d4713e7c35a11ed331dc6f369 (diff) |
perf stat: better error message for unsupported events
For unsupported events (e.g., H/W events when running in a VM)
perf stat currently fails with the error message:
Error: open_counter returned with 2 (No such file or directory).
/bin/dmesg may provide additional information.
Fatal: Not all events could be opened.
dmesg is of no help and it is not clear as to why it fails to
open the counter. This patch changes the error message to
Error: cache-misses event is not supported.
Fatal: Not all events could be opened.
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: [email protected]
LPU-Reference: <[email protected]>
Signed-off-by: David Ahern <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions