linux: make KernelStateProvider handle aggregate prev_states of sched_switch
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 25 Jan 2016 21:02:31 +0000 (16:02 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 26 Feb 2016 19:50:34 +0000 (14:50 -0500)
commit978a610e3c3fff4b49ac9b1e300ac4686c3ca3ce
tree2fce69fd3b0e76a44d67f194da526b23540021cb
parent150ae90e825600e06d655545b38165a6dbaeced0
linux: make KernelStateProvider handle aggregate prev_states of sched_switch

Use an if statement instead of a switch to check individual bits in the
prev_state bitmask.

fixes bug 486515

An example would be any state of EXIT_TRACE where it is two bits,
EXIT_ZOMBIE and EXIT_DEAD that are active. In the previous implementation
the state would be UNKNOWN, but now it would correctly show DEAD (null).

Change-Id: Ia9372e4d196e3a87a1e902753803a87ecafb3b33
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/65139
Reviewed-by: Hudson CI
Reviewed-by: Francis Giraldeau <francis.giraldeau@gmail.com>
analysis/org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/internal/analysis/os/linux/core/kernel/handlers/SchedSwitchHandler.java
This page took 0.025772 seconds and 5 git commands to generate.