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 20:37:46 +0000 (15:37 -0500)
commit755dfbfc2f8d93d7d790de9a2a9094cd5f13751e
tree79539114683da57e0a87563952b800b4443dea63
parentae212e56ada1a03fdc2ea711206c5abc781d495d
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.027146 seconds and 4 git commands to generate.