Fix: perform statedump before replying to sessiond
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 Oct 2016 17:18:53 +0000 (13:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 Oct 2016 17:23:55 +0000 (13:23 -0400)
commit4c62d8d195fb07d3bc64b6a81836d2a5be4abcf3
tree1abec5bce7a2950069af32e1be050fedec0aede2
parentebb9f8ffff8bf3a922073143bd16825140450b98
Fix: perform statedump before replying to sessiond

If a stop command immediately follows a start command, the consumer
daemon will stop event recording in the ring buffers shared memory
control structures before the sessiond sends further commands to the
application. Therefore, a stop-after-start may be performed concurrently
with the statedump, leading to have parts of the statedump being
missing. This case may always happen if an application exits during
statedump, but it is not expected to have incomplete statedump in the
stop-after-start use case.

The session daemon statedump regeneration tests expect that the
statedump is completed when the regeneration command returns. This also
requires that we perform the statedump in lttng-ust before replying to
the session daemon command.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c
This page took 0.024758 seconds and 4 git commands to generate.