Project

General

Profile

Actions

Bug #1367

open

Sessions wih --no-output don't show lost packets

Added by Olivier Dion over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/02/2023
Due date:
% Done:

0%

Estimated time:

Description

Creating a session without any output results in the lost packets count to be zero.

Steps to reproduce:

  1. lttng create --no-output
  2. lttng enable-channel --userspace --subbuf-size=$(getconf PAGE_SIZE) --num-subbuf=2 channel0
  3. lttng enable-event --userspace --channel=channel0 '*'
  4. lttng start
  5. ./spam-ust.sh
  6. lttng status

Got `Statistics: Discard events: 0' but should be `Statistics: None' or `Statistics: Disard events: N'.

Actions #1

Updated by Jérémie Galarneau over 1 year ago

When a session is created in --no-output or --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.

Actions

Also available in: Atom PDF