perf sched: Remove sched_process_exit tracepoint
authorDavid Ahern <dsahern@gmail.com>
Thu, 8 Aug 2013 02:50:46 +0000 (22:50 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 12 Aug 2013 13:31:06 +0000 (10:31 -0300)
Event is not needed nor analyzed. Since perf-sched leverages perf-record
to capture the sched data, we already capture task events like EXIT.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1375930261-77273-5-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-sched.c

index 52850240583a6961aa2cb62bc7339ad358295afc..42f45873d8f07005f5ec307c3dd524e5f90908f9 100644 (file)
@@ -1392,15 +1392,6 @@ static int process_sched_fork_event(struct perf_tool *tool,
        return 0;
 }
 
-static int process_sched_exit_event(struct perf_tool *tool __maybe_unused,
-                                   struct perf_evsel *evsel,
-                                   struct perf_sample *sample __maybe_unused,
-                                   struct machine *machine __maybe_unused)
-{
-       pr_debug("sched_exit event %p\n", evsel);
-       return 0;
-}
-
 static int process_sched_migrate_task_event(struct perf_tool *tool,
                                            struct perf_evsel *evsel,
                                            struct perf_sample *sample,
@@ -1447,7 +1438,6 @@ static int perf_sched__read_events(struct perf_sched *sched,
                { "sched:sched_wakeup",       process_sched_wakeup_event, },
                { "sched:sched_wakeup_new",   process_sched_wakeup_event, },
                { "sched:sched_process_fork", process_sched_fork_event, },
-               { "sched:sched_process_exit", process_sched_exit_event, },
                { "sched:sched_migrate_task", process_sched_migrate_task_event, },
        };
        struct perf_session *session;
@@ -1634,7 +1624,6 @@ static int __cmd_record(int argc, const char **argv)
                "-e", "sched:sched_stat_sleep",
                "-e", "sched:sched_stat_iowait",
                "-e", "sched:sched_stat_runtime",
-               "-e", "sched:sched_process_exit",
                "-e", "sched:sched_process_fork",
                "-e", "sched:sched_wakeup",
                "-e", "sched:sched_migrate_task",