aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--trace-plot-cpu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/trace-plot-cpu.c b/trace-plot-cpu.c
index 1c86df8..09b1690 100644
--- a/trace-plot-cpu.c
+++ b/trace-plot-cpu.c
@@ -237,10 +237,12 @@ static int cpu_plot_event(struct graph_info *ginfo,
237 cpu_info->last_pid = orig_pid; 237 cpu_info->last_pid = orig_pid;
238 else 238 else
239 cpu_info->last_pid = pid; 239 cpu_info->last_pid = pid;
240 }
241 240
242 /* Box should always use the original pid (prev in sched_switch) */ 241 /* Box should always use the original pid (prev in sched_switch) */
243 box_filter = trace_graph_filter_on_task(ginfo, orig_pid); 242 box_filter = trace_graph_filter_on_task(ginfo, orig_pid);
243 } else
244 box_filter = trace_graph_filter_on_task(ginfo, cpu_info->last_pid);
245
244 246
245 if (!box_filter && cpu_info->last_pid) { 247 if (!box_filter && cpu_info->last_pid) {
246 info->bcolor = hash_pid(cpu_info->last_pid); 248 info->bcolor = hash_pid(cpu_info->last_pid);