Skip to contentSkip to conversation

perf sched: Handle PERF_RECORD_EXIT events

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Oct 9, 2012 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  0439539f72ea222fbfe511b47318b9c1815a7108
Gitweb:     http://git.kernel.org/tip/0439539f72ea222fbfe511b47318b9c1815a7108
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Sat, 6 Oct 2012 15:53:41 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Sat, 6 Oct 2012 16:34:03 -0300

perf sched: Handle PERF_RECORD_EXIT events

Noticed sched 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]>
---
 tools/perf/builtin-sched.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/perf/builtin-sched.c +1 -0
index 3a25cd8..30e5336 100644
@@ -1672,6 +1672,7 @@ int cmd_sched(int argc, const char **argv, const char *prefix __maybe_unused)
 			.sample		 = perf_sched__process_tracepoint_sample,
 			.comm		 = perf_event__process_comm,
 			.lost		 = perf_event__process_lost,
+			.exit		 = perf_event__process_exit,
 			.fork		 = perf_event__process_fork,
 			.ordered_samples = true,
 		},