Project

General

Profile

Actions

Bug #914

closed
JF JR

lttng: Trace is going on even though event has been disabled

Bug #914: lttng: Trace is going on even though event has been disabled

Added by jia fang over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jonathan Rajotte Julien
Target version:
Start date:
08/31/2015
Due date:
% Done:

100%

Estimated time:

Description

Hi guys

Issue: My trace log is still going after I disable the events.
My detail log is as attachment
Please help me, Thanks.

lttng version is :
lttng version 2.7.0-pre - Gaia -v2.6.0-rc1-242-g60f7035.

PC is Ubuntu14.04

I use my app "hello" as http://lttng.org/docs/v2.6/#doc-tracing-your-own-user-application told. But I modified my hello.c is as attachment.

To reproduce my issue:
1/ lttng create mysession

2/ lttng enable-event hello_world:my_first_tracepoint --filter '$ctx.procname == "./hello*"' --session mysession -u -c channel

3/ lttng enable-event hello_world:my_first_tracepoint --session mysession -u -c channel

4/ ./hello and press Enter to start tracepoint

5/ lttng disable-event --session mysession --channel channel --userspace hello_world:my_first_tracepoint

6/ lttng start and about 4sec later type lttng stop
7/ lttng view

Then you can view the trace log is going though you have disabled the events with filter


Files

test_log_of_Ubuntu (2.38 KB) test_log_of_Ubuntu testlog jia fang, 08/31/2015 09:43 PM
hello.c (1.44 KB) hello.c hello.c jia fang, 08/31/2015 09:44 PM

Related issues 1 (0 open1 closed)

Copied to LTTng-tools - Bug #935: lttng: Trace is going on even though event has been disabledInvalid08/31/2015

Actions

JF Updated by jia fang over 10 years ago Actions #1

  • Copied to Bug #935: lttng: Trace is going on even though event has been disabled added

JR Updated by Jonathan Rajotte Julien over 10 years ago Actions #2

  • Project changed from LTTng-UST to LTTng

JR Updated by Jonathan Rajotte Julien over 10 years ago Actions #3

  • Status changed from New to Confirmed
  • Assignee set to Jonathan Rajotte Julien

JR Updated by Jonathan Rajotte Julien over 10 years ago Actions #4

  • Status changed from Confirmed to Feedback
  • Priority changed from Critical to Normal
  • Target version set to 2.7

JF Updated by jia fang over 10 years ago Actions #5

Hi Jonathan

It works well. Thanks a lot.

BR,
Fang

JR Updated by Jonathan Rajotte Julien about 10 years ago Actions #7

  • Status changed from Feedback to Resolved
  • % Done changed from 0 to 100

Applied in changeset lttng-tools:tools|commit:700c5a9d4dc7b552926b8ddcbba91cc13312aba0.

JG Updated by Jérémie Galarneau about 10 years ago Actions #8

My version of the fix has a bad cast which can result in a crash. Also, I misunderstood Jonathan's fix, which is correct. Mea culpa!

Actions

Also available in: PDF Atom