Wind River Support Network

HomeDefectsLIN6-10309
Fixed

LIN6-10309 : Lttng filtered tracepoint disabling error

Created: Sep 13, 2015    Updated: Feb 11, 2020
Resolved Date: Sep 17, 2015
Previous ID: LINCCM-292
Found In Version: 6.0.0.23
Fix Version: 6.0.0.25
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Hello,

While testing enabling and disabling tracepoints on XMU03 using lttng we found what seems to be a bug with lttng disable command. If one enables tracepoint using filtering per process, then enables tracepoint without a filter and then tries to disable that tracepoint, the ones enabled with filtering always stay enabled and we haven't found a way to disable them.

If I'm correct lttng currently doesn't support specifically disabling tracepoints using filters but I presume that if I try disabling a tracepoint (for all processes) even those enabled with filter should be disabled. Lttng also lists all tracepoints as disabled although tracing continues. This happens whether the traces are enabled through user application or with lttng shell command.

To reproduce:
first enable tracepoint with filter for process:
lttng enable-event my_provider:my_tracepoint --filter  '$ctx.procname == "my-process*"' --session session -u -c channel

then enable tracing for all processes:
lttng enable-event my_provider:my_tracepoint --session session -u -c channel

then try disabling tracepoint:
lttng disable-event --session session --channel channel --userspace my_provider:my_tracepoint

lttng list session gives:
my_provider:my_tracepoint (type: tracepoint) [disabled]
my_provider:my_tracepoint (type: tracepoint) [disabled] [with filter]

and traces for a filtered process will still be logging.

Other Downloads


Live chat
Online