perf record: Print event causing perf_event_open() to fail
authorStephane Eranian <eranian@google.com>
Thu, 20 Sep 2012 16:19:45 +0000 (18:19 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 20 Sep 2012 17:44:17 +0000 (14:44 -0300)
commit1863fbbb781b1129da0cfdad46ef875370a34117
tree5ba7b070ff5a21f8d4c2f0cea4c021a09c252ef8
parent8f28f19a87cb48d13570ba774a3e85776eb36bb4
perf record: Print event causing perf_event_open() to fail

Got tired of not getting the event that caused the perf_event_open()
syscall to fail. So I fixed the error message. This is very useful when
monitoring lots of events in a single run.

Signed-off-by: Stephane Eranian <eranian@google.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20120920161945.GA7064@quad
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c