lttng-disable-event(1): add usage examples
[lttng-tools.git] / doc / man / lttng-disable-event.1.txt
... / ...
CommitLineData
1lttng-disable-event(1)
2======================
3:revdate: 17 May 2021
4
5
6NAME
7----
8lttng-disable-event - Disable LTTng recording event rules
9
10
11SYNOPSIS
12--------
13Disable one or more recording event rules matching Linux kernel
14events:
15
16[verse]
17*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *disable-event* option:--kernel
18 [option:--tracepoint | option:--syscall | option:--probe | option:--function]
19 (option:--all-events | 'NAME'[,'NAME']...)
20 [option:--session='SESSION'] [option:--channel='CHANNEL']
21
22Disable one or more recording event rules matching user space
23tracepoint or Java/Python logging events:
24
25[verse]
26*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *disable-event*
27 (option:--userspace | option:--jul | option:--log4j | option:--python) [option:--tracepoint]
28 (option:--all-events | 'NAME'[,'NAME']...)
29 [option:--session='SESSION'] [option:--channel='CHANNEL']
30
31
32DESCRIPTION
33-----------
34The `lttng disable-event` command disables one or more enabled recording
35event rules previously created with the man:lttng-enable-event(1)
36command which belong to:
37
38With the option:--session='SESSION' option::
39 The tracing session named 'SESSION'.
40
41Without the option:--session option::
42 The current tracing session (see man:lttng-concepts(7) to learn more
43 about the current tracing session).
44
45With the option:--channel='CHANNEL' option::
46 The channel named 'CHANNEL'.
47
48Without the option:--channel option::
49 The channel named `channel0`.
50
51See man:lttng-concepts(7) to learn more about recording event rules.
52
53As of LTTng{nbsp}{lttng_version}, the `disable-event` command can only
54find recording event rules to disable by their instrumentation point
55type and event name conditions. Therefore, you cannot disable recording
56event rules having a specific instrumentation point log level condition,
57for example.
58
59With the option:--kernel option and no instrumentation point type
60condition option, the `disable-event` command disables one or more Linux
61kernel recording event rules regardless of their instrumentation point
62type.
63
64List the recording event rules of a given tracing session
65and/or channel with the man:lttng-list(1) command.
66
67Without the option:--all-events option, the `disable-event` command
68disables one recording event rule per 'NAME' argument. 'NAME' is the
69exact event name condition pattern of the recording event rule to
70disable, as listed in the output of `lttng list` (see
71man:lttng-list(1)).
72
73You may disable an enabled recording event rule regardless of the
74activity (started or stopped) of its tracing session (see
75man:lttng-start(1) and man:lttng-stop(1)).
76
77See the <<examples,EXAMPLES>> section below for usage examples.
78
79
80include::common-lttng-cmd-options-head.txt[]
81
82
83Tracing domain
84~~~~~~~~~~~~~~
85One of:
86
87option:-j, option:--jul::
88 Disable recording event rules in the `java.util.logging` (JUL)
89 domain.
90
91option:-k, option:--kernel::
92 Disable recording event rules in the Linux kernel domain.
93
94option:-l, option:--log4j::
95 Disable recording event rules in the Apache log4j domain.
96
97option:-p, option:--python::
98 Disable recording event rules in the Python domain.
99
100option:-u, option:--userspace::
101 Disable recording event rules in the user space tracing domain.
102
103
104Recording target
105~~~~~~~~~~~~~~~~
106option:-c 'CHANNEL', option:--channel='CHANNEL'::
107 Disable recording event rules attached to the channel named
108 'CHANNEL' instead of `channel0`.
109
110option:-s 'SESSION', option:--session='SESSION'::
111 Disable recording event rules in the tracing session named 'SESSION'
112 instead of the current tracing session.
113
114
115Instrumentation point type condition
116~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
117At most one of:
118
119option:--function::
120 Only disable recording event rules which match Linux kretprobe
121 events.
122+
123Only available with the option:--kernel option.
124
125option:--probe::
126 Only disable recording event rules which match Linux kprobe events.
127+
128Only available with the option:--kernel option.
129
130option:--syscall::
131 Only disable recording event rules which match Linux system call
132 events.
133+
134Only available with the option:--kernel option.
135
136option:--tracepoint::
137 Only disable recording event rules which match:
138+
139--
140With the option:--kernel or option:--userspace option:::
141 LTTng tracepoint events.
142With the option:--jul, option:--log4j, or option:--python option:::
143 Logging events.
144--
145
146
147Event name condition
148~~~~~~~~~~~~~~~~~~~~
149option:-a, option:--all-events::
150 Disable recording event rules regardless of their event name
151 condition.
152
153
154include::common-lttng-cmd-help-options.txt[]
155
156
157include::common-lttng-cmd-after-options.txt[]
158
159
160[[examples]]
161EXAMPLES
162--------
163.Disable all Linux kernel tracepoint recording event rules in the default channel of the current tracing session.
164====
165See the option:--all-events option.
166
167[role="term"]
168----
169$ lttng disable-event --kernel --tracepoint --all-events
170----
171====
172
173.Disable specific Apache log4j recording event rules in the default channel of a specific tracing session.
174====
175See the option:--session option.
176
177[role="term"]
178----
179$ lttng disable-event --session=my-session --log4j \
180 MySingleton,MyProxy,MyFacade
181----
182====
183
184.Disable all user space recording event rules in a specific channel of the current tracing session.
185====
186See the option:--channel option.
187
188[role="term"]
189----
190$ lttng disable-event --channel=my-channel --userspace \
191 --all-events
192----
193====
194
195.Disable specific Linux kernel system call recording event rules in the default channel of the current tracing session.
196====
197[role="term"]
198----
199$ lttng disable-event --kernel --syscall pipe2,eventfd
200----
201====
202
203
204include::common-footer.txt[]
205
206
207SEE ALSO
208--------
209man:lttng(1),
210man:lttng-enable-event(1),
211man:lttng-list(1),
212man:lttng-concepts(7)
This page took 0.02354 seconds and 4 git commands to generate.