os.linux: Add a new WAIT_UNKNOWN state
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Thu, 26 Feb 2015 07:05:38 +0000 (02:05 -0500)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 4 Mar 2015 21:24:00 +0000 (16:24 -0500)
commita810c24061548fbe74f02f4b488549d78e37787a
tree3cb947765d8012c55429739b64dcfbdc8b2d0e63
parent64522b6b2fca9266821a524a5cf85325ec58988d
os.linux: Add a new WAIT_UNKNOWN state

The WAIT state resulting from the statedump events should be
handled slightly differently from, for example, the WAIT state
of a process being scheduled out at a sched_switch.

In the first case, we do not have any information in the trace
about *what* the process is actually waiting on. So it would
be interesting to differentiate it from a real WAIT_BLOCKED,
for which the user can follow the chain of dependencies.

With this patch, the statedump events set the processes to a new
WAIT_UNKNOWN state (and only if there is no prior status set),
different from the WAIT_BLOCKED used for active processes.

This should help a bit with the "everything-is-yellow" syndrome
that plagues your average CFV.

Thanks to Julien Desfossez for this suggestion.

Change-Id: I7d7bb1bfc1d314c822df5ee04bd8b33c6a0c7d36
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/42722
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.tracecompass.analysis.os.linux.core.tests/src/org/eclipse/tracecompass/analysis/os/linux/core/tests/kernelanalysis/KernelThreadInformationProviderTest.java
org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernelanalysis/KernelStateProvider.java
org.eclipse.tracecompass.analysis.os.linux.core/src/org/eclipse/tracecompass/analysis/os/linux/core/kernelanalysis/StateValues.java
org.eclipse.tracecompass.analysis.os.linux.ui/src/org/eclipse/tracecompass/analysis/os/linux/ui/views/controlflow/ControlFlowPresentationProvider.java
This page took 0.025402 seconds and 5 git commands to generate.