Project

General

Profile

Actions

Bug #993

open

Re-enabling disabled events create new tracepoint events

Added by Bernd Hufmann over 6 years ago. Updated over 6 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/27/2016
Due date:
% Done:

0%

Estimated time:

Description

LTTng version 2.7:

I'm executing the following commands:

lttng create mysession
lttng enable-event myevent -k --probe hrtimer_init
lttng disable-event myevent
lttng enable-event myevent -k

When listing the session it shows 2 events with name "myevent" and the probe event is still disabled. I think the probe event "myevent" should be enabled and the tracepoint event "myevent" shouldn't be created.

Here is relevant part of the output of the list command:
Events:
myevent (loglevel: TRACE_EMERG (0)) (type: tracepoint) [enabled]
myevent (type: probe) [disabled]
offset: 0x0
symbol: hrtimer_init

Note 1: LTTng 2.6, it worked (probe event is enabled and no tracepoint event is created)
Note 2: The same behaviour exists when using UST and loglevel/loglevel-only events (LTTng 2.6 and 2.7)

Actions

Also available in: Atom PDF