perf auxtrace: Add helpers for AUX area tracing errors
Add functions to synthesize, count and print AUX area tracing error events. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1428594864-29309-11-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
f6986c95af
commit
85ed47299e
@@ -1093,6 +1093,7 @@ static s64 perf_session__process_user_event(struct perf_session *session,
|
||||
lseek(fd, file_offset + event->header.size, SEEK_SET);
|
||||
return tool->auxtrace(tool, event, session);
|
||||
case PERF_RECORD_AUXTRACE_ERROR:
|
||||
perf_session__auxtrace_error_inc(session, event);
|
||||
return tool->auxtrace_error(tool, event, session);
|
||||
default:
|
||||
return -EINVAL;
|
||||
@@ -1282,6 +1283,8 @@ static void perf_session__warn_about_errors(const struct perf_session *session)
|
||||
|
||||
if (oe->nr_unordered_events != 0)
|
||||
ui__warning("%u out of order events recorded.\n", oe->nr_unordered_events);
|
||||
|
||||
events_stats__auxtrace_error_warn(stats);
|
||||
}
|
||||
|
||||
volatile int session_done;
|
||||
|
Reference in New Issue
Block a user