lttng-untrack(1): follow the style of lttng-track(1) for the example
[lttng-tools.git] / doc / man / lttng-untrack.1.txt
CommitLineData
882443a6
PP
1lttng-untrack(1)
2================
26f0c779 3:revdate: 1 May 2021
882443a6
PP
4
5
6NAME
7----
26f0c779 8lttng-untrack - Disallow specific processes to record LTTng events
882443a6
PP
9
10
11SYNOPSIS
12--------
26f0c779 13Disallow specific processes to record Linux kernel events:
de332339
JG
14
15[verse]
26f0c779 16*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--kernel [option:--session='SESSION']
de332339 17 (option:--pid=PID[,PID]... | option:--vpid=VPID[,VPID]... |
26f0c779
PP
18 option:--uid=UID[,UID]... | option:--vuid=VUSER[,VUSER]... |
19 option:--gid=GID[,GID]... | option:--vgid=VGROUP[,VGROUP]...)...
de332339
JG
20
21[verse]
26f0c779
PP
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)...
de332339 24
26f0c779 25Disallow specific processes to record user space events:
de332339
JG
26
27[verse]
26f0c779
PP
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]...)...
de332339 31
882443a6 32[verse]
26f0c779 33*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--userspace [option:--session='SESSION']
de332339 34 option:--all (option:--vpid | option:--vgid | option:--vuid)...
882443a6
PP
35
36
37DESCRIPTION
38-----------
26f0c779
PP
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'.
882443a6 44
26f0c779
PP
45Without the option:--session option::
46 The current tracing session (see man:lttng-concepts(7) to learn more
47 about the current tracing session).
882443a6 48
26f0c779
PP
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.
882443a6
PP
54
55
f80d5ec6
PP
56
57Inclusion set example
58~~~~~~~~~~~~~~~~~~~~~
26f0c779 59A common operation is to create a tracing session (see
f80d5ec6
PP
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.
882443a6
PP
63
64Assume the maximum system PID is 7 for this example.
65
26f0c779
PP
66. Command:
67+
d4f093aa 68[role="term"]
03c5529d
PP
69----
70$ lttng create
71----
26f0c779 72+
de332339 73Initial inclusion set:
26f0c779 74+
882443a6
PP
75-------------------------------
76[0] [1] [2] [3] [4] [5] [6] [7]
77-------------------------------
78
26f0c779
PP
79. Command:
80+
d4f093aa 81[role="term"]
03c5529d 82----
f80d5ec6 83$ lttng untrack --kernel --all --pid
03c5529d 84----
26f0c779
PP
85+
86Inclusion set:
87+
882443a6
PP
88-------------------------------
89[ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
90-------------------------------
91
26f0c779
PP
92. Commands:
93+
d4f093aa 94[role="term"]
03c5529d 95----
de332339 96$ lttng enable-event --kernel ...
03c5529d
PP
97$ lttng start
98$ # ...
de332339 99$ lttng track --kernel --pid=3,5
03c5529d 100----
26f0c779
PP
101+
102Inclusion set:
103+
882443a6
PP
104-------------------------------
105[ ] [ ] [ ] [3] [ ] [5] [ ] [ ]
106-------------------------------
107
26f0c779
PP
108. Command:
109+
d4f093aa 110[role="term"]
03c5529d 111----
de332339 112$ lttng track --kernel --pid=2
03c5529d 113----
26f0c779
PP
114+
115Inclusion set:
116+
882443a6
PP
117-------------------------------
118[ ] [ ] [2] [3] [ ] [5] [ ] [ ]
119-------------------------------
120
121
f5511eea 122include::common-lttng-cmd-options-head.txt[]
882443a6
PP
123
124
26f0c779
PP
125Tracing domain
126~~~~~~~~~~~~~~
882443a6
PP
127One of:
128
129option:-k, option:--kernel::
26f0c779 130 Remove values from one or more Linux kernel inclusion sets.
882443a6
PP
131
132option:-u, option:--userspace::
26f0c779 133 Remove values from one or more user space inclusion sets.
882443a6
PP
134
135
26f0c779
PP
136Recording target
137~~~~~~~~~~~~~~~~
de332339 138option:-s 'SESSION', option:--session='SESSION'::
26f0c779
PP
139 Remove values from one or more inclusion sets of the tracing session
140 named 'SESSION' instead of the current tracing session.
882443a6
PP
141
142
26f0c779
PP
143Inclusion set selection
144~~~~~~~~~~~~~~~~~~~~~~~
59b19c3c 145option:-p ['PID'[,'PID']...], option:--pid[='PID'[,'PID']...]::
26f0c779
PP
146 For each 'PID' argument, remove 'PID' from the process ID inclusion
147 set of the selected tracing session and domain.
de332339 148+
26f0c779
PP
149'PID' is the process ID attribute of a process as seen from the root
150PID namespace (see man:pid_namespaces(7)).
882443a6 151+
26f0c779 152Only available with option:--kernel option.
882443a6 153
de332339 154option:--vpid[='VPID'[,'VPID']...]::
26f0c779
PP
155 For each 'VPID' argument, remove 'VPID' from the virtual process ID
156 inclusion set of the selected tracing session and domain.
de332339
JG
157+
158'VPID' is the virtual process ID attribute of a process as seen from
26f0c779 159the PID namespace of the process (see man:pid_namespaces(7)).
de332339
JG
160
161option:--uid[='USER'[,'USER']...]::
26f0c779
PP
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:
de332339 166+
26f0c779
PP
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.
de332339 172+
26f0c779
PP
173The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
174the user name resolution on removal from the user ID inclusion set.
175--
de332339 176+
26f0c779 177Only available with option:--kernel option.
de332339 178
26f0c779
PP
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.
de332339 182+
26f0c779 183'VUSER' is either:
de332339 184+
26f0c779
PP
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.
de332339 190+
26f0c779
PP
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--
de332339
JG
195
196option:--gid[='GROUP'[,'GROUP']...]::
26f0c779
PP
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:
de332339 201+
26f0c779
PP
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.
de332339 207+
26f0c779
PP
208The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
209the group name resolution on removal from the group ID inclusion set.
210--
de332339 211+
26f0c779 212Only available with option:--kernel option.
de332339 213
26f0c779
PP
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.
de332339 217+
26f0c779 218'VGROUP' is either:
de332339 219+
26f0c779
PP
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.
de332339 225+
26f0c779
PP
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.
de332339 238
882443a6 239
f5511eea 240include::common-lttng-cmd-help-options.txt[]
882443a6
PP
241
242
f5511eea
PP
243include::common-lttng-cmd-after-options.txt[]
244
245
246include::common-footer.txt[]
882443a6
PP
247
248
249SEE ALSO
250--------
26f0c779 251man:lttng(1),
af1c4164
PP
252man:lttng-track(1),
253man:lttng-concepts(7)
This page took 0.046053 seconds and 4 git commands to generate.