aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-01-05 22:25:29 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-01-05 22:25:29 -0500
commit09db721d3fda49320d516484375d852bba856f0c (patch)
treea47c00a5e743b0b898fff1b7c2bb6d81a095c451
parent62939f1fea71b8b8edf7985033670af0dce2116a (diff)
trace-view: Fix list filter on tasks scheduling in
Fix the list to view the task scheduling in. That is, the record belongs to the previous task, but we want to see a filtered task scheduling in. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-view-store.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/trace-view-store.c b/trace-view-store.c
index 5e81daa..5ae3a00 100644
--- a/trace-view-store.c
+++ b/trace-view-store.c
@@ -1260,7 +1260,7 @@ gint get_next_pid(TraceViewStore *store, struct pevent *pevent, struct record *r
1260 unsigned long long val; 1260 unsigned long long val;
1261 int ret; 1261 int ret;
1262 1262
1263 ret = pevent_read_number_field(store->sched_switch_next_field, record, &val); 1263 ret = pevent_read_number_field(store->sched_switch_next_field, record->data, &val);
1264 1264
1265 return val; 1265 return val;
1266} 1266}
@@ -1333,8 +1333,8 @@ void trace_view_store_filter_tasks(TraceViewStore *store, struct filter_task *fi
1333 store->cpu_list[cpu][i].visible = 1; 1333 store->cpu_list[cpu][i].visible = 1;
1334 else 1334 else
1335 store->cpu_list[cpu][i].visible = 0; 1335 store->cpu_list[cpu][i].visible = 0;
1336 } 1336 } else
1337 store->cpu_list[cpu][i].visible = 0; 1337 store->cpu_list[cpu][i].visible = 0;
1338 } 1338 }
1339 1339
1340 skip: 1340 skip: