lttng-untrack(1): follow the style of lttng-track(1) for the example
[lttng-tools.git] / doc / man / lttng-untrack.1.txt
... / ...
CommitLineData
1lttng-untrack(1)
2================
3:revdate: 1 May 2021
4
5
6NAME
7----
8lttng-untrack - Disallow specific processes to record LTTng events
9
10
11SYNOPSIS
12--------
13Disallow specific processes to record Linux kernel events:
14
15[verse]
16*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--kernel [option:--session='SESSION']
17 (option:--pid=PID[,PID]... | option:--vpid=VPID[,VPID]... |
18 option:--uid=UID[,UID]... | option:--vuid=VUSER[,VUSER]... |
19 option:--gid=GID[,GID]... | option:--vgid=VGROUP[,VGROUP]...)...
20
21[verse]
22*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--kernel [option:--session='SESSION']
23 option:--all (option:--pid | option:--vpid | option:--uid | option:--vuid | option:--gid | option:--vgid)...
24
25Disallow specific processes to record user space events:
26
27[verse]
28*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--userspace [option:--session='SESSION']
29 (option:--vpid=VPID[,VPID]... | option:--vuid=VUSER[,VUSER]... |
30 option:--vgid=VGROUP[,VGROUP]...)...
31
32[verse]
33*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--userspace [option:--session='SESSION']
34 option:--all (option:--vpid | option:--vgid | option:--vuid)...
35
36
37DESCRIPTION
38-----------
39The `lttng untrack` command disallows one or more processes to record
40LTTng events based on their attributes within:
41
42With the option:--session='SESSION' option::
43 The tracing session named 'SESSION'.
44
45Without the option:--session option::
46 The current tracing session (see man:lttng-concepts(7) to learn more
47 about the current tracing session).
48
49See man:lttng-concepts(7) to learn more about tracing sessions and
50recording event rules.
51
52The `untrack` command removes values from _inclusion sets_ of process
53attributes. See man:lttng-track(1) to learn more about inclusion sets.
54
55
56
57Inclusion set example
58~~~~~~~~~~~~~~~~~~~~~
59A common operation is to create a tracing session (see
60man:lttng-create(1)), remove all the entries from the Linux kernel
61process ID inclusion set, start tracing, and then manually add PIDs
62while the tracing session is active.
63
64Assume the maximum system PID is 7 for this example.
65
66. Command:
67+
68[role="term"]
69----
70$ lttng create
71----
72+
73Initial inclusion set:
74+
75-------------------------------
76[0] [1] [2] [3] [4] [5] [6] [7]
77-------------------------------
78
79. Command:
80+
81[role="term"]
82----
83$ lttng untrack --kernel --all --pid
84----
85+
86Inclusion set:
87+
88-------------------------------
89[ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
90-------------------------------
91
92. Commands:
93+
94[role="term"]
95----
96$ lttng enable-event --kernel ...
97$ lttng start
98$ # ...
99$ lttng track --kernel --pid=3,5
100----
101+
102Inclusion set:
103+
104-------------------------------
105[ ] [ ] [ ] [3] [ ] [5] [ ] [ ]
106-------------------------------
107
108. Command:
109+
110[role="term"]
111----
112$ lttng track --kernel --pid=2
113----
114+
115Inclusion set:
116+
117-------------------------------
118[ ] [ ] [2] [3] [ ] [5] [ ] [ ]
119-------------------------------
120
121
122include::common-lttng-cmd-options-head.txt[]
123
124
125Tracing domain
126~~~~~~~~~~~~~~
127One of:
128
129option:-k, option:--kernel::
130 Remove values from one or more Linux kernel inclusion sets.
131
132option:-u, option:--userspace::
133 Remove values from one or more user space inclusion sets.
134
135
136Recording target
137~~~~~~~~~~~~~~~~
138option:-s 'SESSION', option:--session='SESSION'::
139 Remove values from one or more inclusion sets of the tracing session
140 named 'SESSION' instead of the current tracing session.
141
142
143Inclusion set selection
144~~~~~~~~~~~~~~~~~~~~~~~
145option:-p ['PID'[,'PID']...], option:--pid[='PID'[,'PID']...]::
146 For each 'PID' argument, remove 'PID' from the process ID inclusion
147 set of the selected tracing session and domain.
148+
149'PID' is the process ID attribute of a process as seen from the root
150PID namespace (see man:pid_namespaces(7)).
151+
152Only available with option:--kernel option.
153
154option:--vpid[='VPID'[,'VPID']...]::
155 For each 'VPID' argument, remove 'VPID' from the virtual process ID
156 inclusion set of the selected tracing session and domain.
157+
158'VPID' is the virtual process ID attribute of a process as seen from
159the PID namespace of the process (see man:pid_namespaces(7)).
160
161option:--uid[='USER'[,'USER']...]::
162 For each 'USER' argument, remove 'USER' from the user ID inclusion
163 set of the selected tracing session and domain.
164+
165'USER' is either:
166+
167--
168* The real user ID (see man:getuid(3)) of a process as seen
169 from the root user namespace (see man:user_namespaces(7)).
170
171* A user name.
172+
173The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
174the user name resolution on removal from the user ID inclusion set.
175--
176+
177Only available with option:--kernel option.
178
179option:--vuid[='VUSER'[,'VUSER']...]::
180 For each 'VUSER' argument, remove 'VUSER' from the virtual user ID
181 inclusion set of the selected tracing session and domain.
182+
183'VUSER' is either:
184+
185--
186* The real user ID (see man:getuid(3)) of a process as seen
187 from the user namespace (see man:user_namespaces(7)).
188
189* A user name.
190+
191The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
192the user name resolution on removal from the virtual user ID inclusion
193set.
194--
195
196option:--gid[='GROUP'[,'GROUP']...]::
197 For each 'GROUP' argument, remove 'GROUP' from the group ID
198 inclusion set of the selected tracing session and domain.
199+
200'GROUP' is either:
201+
202--
203* The real group ID (see man:getgid(3)) of a process as seen from the
204 root user namespace (see man:user_namespaces(7)).
205
206* A group name.
207+
208The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
209the group name resolution on removal from the group ID inclusion set.
210--
211+
212Only available with option:--kernel option.
213
214option:--vgid[='VGROUP'[,'VGROUP']...]::
215 For each 'VGROUP' argument, remove 'VGROUP' from the virtual group
216 ID inclusion set of the selected tracing session and domain.
217+
218'VGROUP' is either:
219+
220--
221* The real group ID (see man:getgid(3)) of a process as seen
222 from the user namespace (see man:user_namespaces(7)).
223
224* A group name.
225+
226The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
227the group name resolution on removal from the virtual group ID inclusion
228set.
229--
230
231
232Inclusion set operation
233~~~~~~~~~~~~~~~~~~~~~~~
234option:-a, option:--all::
235 With one or more empty option:--pid, option:--vpid, option:--uid,
236 option:--vuid, option:--gid, and option:--vgid options: clear the
237 selected inclusion sets.
238
239
240include::common-lttng-cmd-help-options.txt[]
241
242
243include::common-lttng-cmd-after-options.txt[]
244
245
246include::common-footer.txt[]
247
248
249SEE ALSO
250--------
251man:lttng(1),
252man:lttng-track(1),
253man:lttng-concepts(7)
This page took 0.024097 seconds and 5 git commands to generate.