File: lttng-disable-event.1.txt

package info (click to toggle)
ltt-control 2.13.15-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 17,656 kB
  • sloc: ansic: 167,287; sh: 27,018; makefile: 2,828; python: 1,380; yacc: 692; lex: 129; java: 109; perl: 99; cpp: 35; xml: 23
file content (215 lines) | stat: -rw-r--r-- 5,951 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
lttng-disable-event(1)
======================
:revdate: 14 June 2021


NAME
----
lttng-disable-event - Disable LTTng recording event rules


SYNOPSIS
--------
Disable one or more recording event rules matching Linux kernel
events:

[verse]
*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *disable-event* option:--kernel
      [option:--tracepoint | option:--syscall | option:--probe | option:--function]
      (option:--all-events | 'NAME'[,'NAME']...)
      [option:--session='SESSION'] [option:--channel='CHANNEL']

Disable one or more recording event rules matching user space
tracepoint or Java/Python logging events:

[verse]
*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *disable-event*
      (option:--userspace | option:--jul | option:--log4j | option:--python) [option:--tracepoint]
      (option:--all-events | 'NAME'[,'NAME']...)
      [option:--session='SESSION'] [option:--channel='CHANNEL']


DESCRIPTION
-----------
The `lttng disable-event` command disables one or more enabled recording
event rules previously created with the man:lttng-enable-event(1)
command which belong to:

With the option:--session='SESSION' option::
    The recording session named 'SESSION'.

Without the option:--session option::
    The current recording session (see man:lttng-concepts(7) to learn
    more about the current recording session).

With the option:--channel='CHANNEL' option::
    The channel named 'CHANNEL'.

Without the option:--channel option::
    The channel named `channel0`.
+
If there's more than one channel for the selected recording session and
domain, the `disable-event` command fails.

See man:lttng-concepts(7) to learn more about recording event rules.

As of LTTng{nbsp}{lttng_version}, the `disable-event` command can only
find recording event rules to disable by their instrumentation point
type and event name conditions. Therefore, you cannot disable recording
event rules having a specific instrumentation point log level condition,
for example.

With the option:--kernel option and no instrumentation point type
condition option, the `disable-event` command disables one or more Linux
kernel recording event rules regardless of their instrumentation point
type.

List the recording event rules of a given recording session
and/or channel with the man:lttng-list(1) command.

Without the option:--all-events option, the `disable-event` command
disables one recording event rule per 'NAME' argument. 'NAME' is the
exact event name condition pattern of the recording event rule to
disable, as listed in the output of `lttng list` (see
man:lttng-list(1)).

You may disable an enabled recording event rule regardless of the
activity (started or stopped) of its recording session (see
man:lttng-start(1) and man:lttng-stop(1)).

See the ``<<examples,EXAMPLES>>'' section below for usage examples.


include::common-lttng-cmd-options-head.txt[]


Tracing domain
~~~~~~~~~~~~~~
One of:

option:-j, option:--jul::
    Disable recording event rules in the `java.util.logging` (JUL)
    domain.

option:-k, option:--kernel::
    Disable recording event rules in the Linux kernel domain.

option:-l, option:--log4j::
    Disable recording event rules in the Apache log4j domain.

option:-p, option:--python::
    Disable recording event rules in the Python domain.

option:-u, option:--userspace::
    Disable recording event rules in the user space tracing domain.


Recording target
~~~~~~~~~~~~~~~~
option:-c 'CHANNEL', option:--channel='CHANNEL'::
    Disable recording event rules attached to the channel named
    'CHANNEL' instead of `channel0`.

option:-s 'SESSION', option:--session='SESSION'::
    Disable recording event rules in the recording session named
    'SESSION' instead of the current recording session.


Instrumentation point type condition
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At most one of:

option:--function::
    Only disable recording event rules which match Linux kretprobe
    events.
+
Only available with the option:--kernel option.

option:--probe::
    Only disable recording event rules which match Linux kprobe events.
+
Only available with the option:--kernel option.

option:--syscall::
    Only disable recording event rules which match Linux system call
    events.
+
Only available with the option:--kernel option.

option:--tracepoint::
    Only disable recording event rules which match:
+
--
With the option:--kernel or option:--userspace option:::
    LTTng tracepoint events.
With the option:--jul, option:--log4j, or option:--python option:::
    Logging events.
--


Event name condition
~~~~~~~~~~~~~~~~~~~~
option:-a, option:--all-events::
    Disable recording event rules regardless of their event name
    condition.


include::common-lttng-cmd-help-options.txt[]


include::common-lttng-cmd-after-options.txt[]


[[examples]]
EXAMPLES
--------
.Disable all Linux kernel tracepoint recording event rules in the default channel of the current recording session.
====
See the option:--all-events option.

[role="term"]
----
$ lttng disable-event --kernel --tracepoint --all-events
----
====

.Disable specific Apache log4j recording event rules in the default channel of a specific recording session.
====
See the option:--session option.

[role="term"]
----
$ lttng disable-event --session=my-session --log4j \
                      MySingleton,MyProxy,MyFacade
----
====

.Disable all user space recording event rules in a specific channel of the current recording session.
====
See the option:--channel option.

[role="term"]
----
$ lttng disable-event --channel=my-channel --userspace \
                      --all-events
----
====

.Disable specific Linux kernel system call recording event rules in the default channel of the current recording session.
====
[role="term"]
----
$ lttng disable-event --kernel --syscall pipe2,eventfd
----
====


include::common-footer.txt[]


SEE ALSO
--------
man:lttng(1),
man:lttng-enable-event(1),
man:lttng-list(1),
man:lttng-concepts(7)