perf annotate: Handle PERF_RECORD_EXIT events
authorArnaldo Carvalho de Melo <[email protected]>
Sat, 6 Oct 2012 18:53:41 +0000 (15:53 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Sat, 6 Oct 2012 19:33:56 +0000 (16:33 -0300)
Noticed annotate wasn't handling those events while introducing
perf_event__process_{fork,exit}.

Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-annotate.c

index cca2fb5c436f889219c7415963f0791b3f4c3464..690fa9a54657bdfc0f26fe7f6578a08b7f94459e 100644 (file)
@@ -246,6 +246,7 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
                        .sample = process_sample_event,
                        .mmap   = perf_event__process_mmap,
                        .comm   = perf_event__process_comm,
+                       .exit   = perf_event__process_exit,
                        .fork   = perf_event__process_fork,
                        .ordered_samples = true,
                        .ordering_requires_timestamps = true,