This will make the control flow view show a task finish instead of go
on and on and on. After this, PIDs can be more clearly re-used.
This patch updates the test cases as the behaviour of the state provider
changes.
Change-Id: Ib9fd24a868734b94cca9063c6753d88aa1185eb0
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/54415
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
/* Set the status of the process that got scheduled out. */
quark = ss.getQuarkRelativeAndAdd(formerThreadNode, Attributes.STATUS);
if (prevState != 0) {
- value = StateValues.PROCESS_STATUS_WAIT_BLOCKED_VALUE;
+ if (prevState == LinuxValues.TASK_STATE_DEAD) {
+ value = TmfStateValue.nullValue();
+ } else {
+ value = StateValues.PROCESS_STATUS_WAIT_BLOCKED_VALUE;
+ }
} else {
value = StateValues.PROCESS_STATUS_WAIT_FOR_CPU_VALUE;
}
1331668247314038062L,
1331668247327098502L,
1331668247327098502L,
- 1331668247327098502L,
+ 1331668247314851888L,
1331668247327098502L,
1331668247327098502L,
1331668247314038062L,
1331668247415001807L,
- 1331668247415001807L,
+ 1331668247399704235L,
1331668247415001807L,
1331668247415001807L,
1331668247314038062L,
1331668247314038062L,
1331668247335106720L,
1331668247335106720L,
- 1331668247335106720L,
+ 1331668247315471788L,
1331668247335106720L,
1331668247335106720L,
1331668247931782426L,
1331668247314038062L,
1331668247335112802L,
1331668247335112802L,
- 1331668247335112802L,
+ 1331668247316120937L,
1331668247335112802L,
1331668247335112802L,
1331668247314038062L,
1331668247387136191L,
1331668247314038062L,
1331668247314038062L,
- 1331668247415047817L,
+ 1331668247400779449L,
1331668247415047817L,
1331668247415047817L,
1331668247415047817L,