Fix: silence 'non-consumed' message for non-started sessions
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 28 Oct 2024 20:02:59 +0000 (16:02 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 4 Nov 2024 23:01:08 +0000 (18:01 -0500)
commit56f320664342ebf7b00376a2b813189484e22d6d
treeac335b9064be2b619c3f0c16613d1283508f7306
parent4610de285daf887262a58683d8597668de62e676
Fix: silence 'non-consumed' message for non-started sessions

Destroying a session with at least one enabled event and which has never
been started will currently result in an error message in the kernel log
about 'non-consumed data' for each of the per-cpu buffer. This happens
because a packet header is created in the buffer but never consumed if
the session is not started.

Add a check in the buffer cleanup code to avoid printing 'non-consumed
data' errors for buffers associated with a session taht was never
started.

Change-Id: I1358e1ae49d03544a961515b97b115a488434e27
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ringbuffer/frontend_types.h
src/lib/ringbuffer/ring_buffer_frontend.c
src/lttng-events.c
This page took 0.026194 seconds and 4 git commands to generate.