diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2016-02-09 22:38:34 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2016-02-10 13:39:26 -0500 |
commit | 5ebd7cd9f25f29b0c5f2f6c3a05e6fcac184992e (patch) | |
tree | 4aafa304f3079199a19c026c4bf3d36cbacd2123 | |
parent | 0b232821c7baf69e9d9cbcbb6a04760852b68da5 (diff) | |
download | trace-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.c | 2 |
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, |