Sessions wih --no-output don't show lost packets
Creating a session without any output results in the lost packets count to be zero.
Steps to reproduce:
- lttng create --no-output
- lttng enable-channel --userspace --subbuf-size=$(getconf PAGE_SIZE) --num-subbuf=2 channel0
- lttng enable-event --userspace --channel=channel0 '*'
- lttng start
- lttng status
Got `Statistics: Discard events: 0' but should be `Statistics: None' or `Statistics: Disard events: N'.
Updated by Jérémie Galarneau 4 months ago
When a session is created in
--snapshot mode, we should still provide reliable "discarded events"/"dropped packets" statistics.
The only difference with the other modes (tracing locally, streaming to a network output, or using live) is that we shouldn't warn the user of those discarded events/dropped packets when the session is stopped and/or destroyed.