aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2016-02-09 22:38:34 -0500
committerSteven Rostedt <rostedt@goodmis.org>2016-02-10 13:39:26 -0500
commit5ebd7cd9f25f29b0c5f2f6c3a05e6fcac184992e (patch)
tree4aafa304f3079199a19c026c4bf3d36cbacd2123
parent0b232821c7baf69e9d9cbcbb6a04760852b68da5 (diff)
downloadtrace-cmd-5ebd7cd9f25f29b0c5f2f6c3a05e6fcac184992e.tar.gz
kernelshark: Filter out preempt from running sched switch state
The task state now includes a flag for when its preempted. This causes the task plot to not denote the task was preempted (rather ironic). Mask out the bits that are still allow us to see this is TASK_RUNNING. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-plot-task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-plot-task.c b/trace-plot-task.c
index 78f40923..b6c6fadf 100644
--- a/trace-plot-task.c
+++ b/trace-plot-task.c
@@ -69,7 +69,7 @@ static gboolean is_running(struct graph_info *ginfo, struct pevent_record *recor
return FALSE;
pevent_read_number_field(ginfo->event_prev_state, record->data, &val);
- return val ? FALSE : TRUE;
+ return val & ((1 << 11) - 1)? FALSE : TRUE;
}
static gboolean record_matches_pid(struct graph_info *ginfo,