aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-cpu.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-02-18 10:11:02 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-02-18 10:11:02 -0500
commitc748e01c073f47d7696f6eba59cb18454648ae8a (patch)
tree7b879f12d689249b39e5daee5835fce1e9fbe400 /trace-plot-cpu.c
parentdf49e6a44d60740e6730e2b5255b53c900adc9a7 (diff)
trace-graph: Move reading sched switch comms into trace-graph.c
Move the reading of missed comms from sched_switch events from trace-plot-cpu.c into trace-graph.c into the sched_switch check itself. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-plot-cpu.c')
-rw-r--r--trace-plot-cpu.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/trace-plot-cpu.c b/trace-plot-cpu.c
index e99fec8..50d720b 100644
--- a/trace-plot-cpu.c
+++ b/trace-plot-cpu.c
@@ -98,16 +98,6 @@ static int filter_record(struct graph_info *ginfo,
98 /* Also show the task switching out */ 98 /* Also show the task switching out */
99 if (filter) 99 if (filter)
100 filter = trace_graph_filter_on_task(ginfo, *sched_pid); 100 filter = trace_graph_filter_on_task(ginfo, *sched_pid);
101
102 if (ginfo->read_comms) {
103 /*
104 * First time through, register any missing
105 * comm / pid mappings.
106 */
107 if (!pevent_pid_is_registered(ginfo->pevent, *sched_pid))
108 pevent_register_comm(ginfo->pevent,
109 strdup(comm), *sched_pid);
110 }
111 } else 101 } else
112 *sched_pid = *orig_pid; 102 *sched_pid = *orig_pid;
113 103