lttng: Correctly assign syscall state for new processes
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 9 Apr 2013 18:40:59 +0000 (14:40 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 23 Apr 2013 19:22:17 +0000 (15:22 -0400)
commitb46ea93c6c68e51b7f1613c23eaa0d324ec3e828
tree87f19c872299dfa43d8590574541ddd1ce7f1971
parent5a7326dc112929f383c750529678d542fac739e6
lttng: Correctly assign syscall state for new processes

If a process is already in kernel mode ("syscall" state) at
the beginning of a trace, all its children created via fork/clone
would be wrongly assigned to a user mode state once they get
scheduled on a CPU. This is because the parent's sycall name was
not set (since we never saw that syscall entry event).

This is actually a common case with LTTng traces: the lttng-consumerd
process is always already in kernel mode at the start of a trace,
and forks another process soon after.

Fixes bug #405221.

Change-Id: Iffdfb3277c1fa3fb9316c2ef9c8e6f04f539bb43
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/11756
Tested-by: Hudson CI
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/LttngStrings.java
org.eclipse.linuxtools.lttng2.kernel.core/src/org/eclipse/linuxtools/internal/lttng2/kernel/core/stateprovider/CtfKernelStateInput.java
This page took 0.025533 seconds and 5 git commands to generate.