Actions
Bug #936
closedDisable all event ust
Start date:
09/09/2015
Due date:
% Done:
100%
Estimated time:
Description
Disable all events on ust does not work.
lttng create mysession lttng enable-event test -u lttng enable-event test2 -u lttng disable-event -u -a lttng list mysession killall lttng-sessiond
Result:
Spawning a session daemon Session mysession created. Traces will be written in /home/jonathan/lttng-traces/mysession-20150909-171434 UST event test created in channel channel0 UST event test2 created in channel channel0 Error: UST event not found Tracing session mysession: [inactive] Trace path: /home/jonathan/lttng-traces/mysession-20150909-171434 === Domain: UST global === Buffer type: per UID Channels: ------------- - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 131072 number of subbufers: 4 switch timer interval: 0 read timer interval: 0 trace file count: 0 trace file size (bytes): 0 output: mmap() Events: test2 (type: tracepoint) [enabled] test (type: tracepoint) [enabled]
Looks like it works when using enable-event -u -a:
Traces will be written in /home/jonathan/lttng-traces/mysession-20150909-171544 All UST events are enabled in channel channel0 All UST events are disabled in channel channel0 Tracing session mysession: [inactive] Trace path: /home/jonathan/lttng-traces/mysession-20150909-171544 === Domain: UST global === Buffer type: per UID Channels: ------------- - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 131072 number of subbufers: 4 switch timer interval: 0 read timer interval: 0 trace file count: 0 trace file size (bytes): 0 output: mmap() Events: * (type: tracepoint) [disabled]
The behaviour on kernel/python/jul/log4j is to disable all event.
Session mysession created. Traces will be written in /home/jonathan/lttng-traces/mysession-20150909-171705 Kernel event test created in channel channel0 All Kernel events are disabled in channel channel0 Tracing session mysession: [inactive] Trace path: /home/jonathan/lttng-traces/mysession-20150909-171705 === Domain: Kernel === Channels: ------------- - channel0: [enabled] Attributes: overwrite mode: 0 subbufers size: 262144 number of subbufers: 4 switch timer interval: 0 read timer interval: 200000 trace file count: 0 trace file size (bytes): 0 output: splice() Events: test (loglevel: TRACE_EMERG (0)) (type: tracepoint) [disabled]
Updated by Jonathan Rajotte Julien about 9 years ago
- Status changed from Confirmed to In Progress
Updated by Jonathan Rajotte Julien about 9 years ago
- Project changed from LTTng to LTTng-tools
Updated by Jonathan Rajotte Julien about 9 years ago
- Status changed from In Progress to Feedback
Updated by Jonathan Rajotte Julien about 9 years ago
- Related to Bug #925: Disabling a kernel event disables all kernel events added
Updated by Jonathan Rajotte Julien about 9 years ago
- Status changed from Feedback to Resolved
- % Done changed from 0 to 100
Applied in changeset tools|commit:77d536b26639e6e3f18c388bfe09430441bd8e89.
Actions