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 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
|
lttng-untrack(1)
================
:revdate: 14 June 2021
NAME
----
lttng-untrack - Disallow specific processes to record LTTng events
SYNOPSIS
--------
Disallow specific processes to record Linux kernel events:
[verse]
*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--kernel [option:--session='SESSION']
(option:--pid=PID[,PID]... | option:--vpid=VPID[,VPID]... |
option:--uid=UID[,UID]... | option:--vuid=VUSER[,VUSER]... |
option:--gid=GID[,GID]... | option:--vgid=VGROUP[,VGROUP]...)...
[verse]
*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--kernel [option:--session='SESSION']
option:--all (option:--pid | option:--vpid | option:--uid | option:--vuid | option:--gid | option:--vgid)...
Disallow specific processes to record user space events:
[verse]
*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--userspace [option:--session='SESSION']
(option:--vpid=VPID[,VPID]... | option:--vuid=VUSER[,VUSER]... |
option:--vgid=VGROUP[,VGROUP]...)...
[verse]
*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *untrack* option:--userspace [option:--session='SESSION']
option:--all (option:--vpid | option:--vgid | option:--vuid)...
DESCRIPTION
-----------
The `lttng untrack` command disallows one or more processes to record
LTTng events based on their attributes within:
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).
See man:lttng-concepts(7) to learn more about recording sessions and
recording event rules.
The `untrack` command removes values from _inclusion sets_ of process
attributes. See man:lttng-track(1) to learn more about inclusion sets.
See the ``<<examples,EXAMPLES>>'' section below for usage examples.
Inclusion set example
~~~~~~~~~~~~~~~~~~~~~
A common operation is to create a recording session (see
man:lttng-create(1)), remove all the entries from the Linux kernel
process ID inclusion set, start recording, and then manually add PIDs
while the recording session is active.
Assume the maximum system PID is 7 for this example.
. Command:
+
[role="term"]
----
$ lttng create
----
+
Initial inclusion set:
+
-------------------------------
[0] [1] [2] [3] [4] [5] [6] [7]
-------------------------------
. Command:
+
[role="term"]
----
$ lttng untrack --kernel --all --pid
----
+
Inclusion set:
+
-------------------------------
[ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
-------------------------------
. Commands:
+
[role="term"]
----
$ lttng enable-event --kernel ...
$ lttng start
$ # ...
$ lttng track --kernel --pid=3,5
----
+
Inclusion set:
+
-------------------------------
[ ] [ ] [ ] [3] [ ] [5] [ ] [ ]
-------------------------------
. Command:
+
[role="term"]
----
$ lttng track --kernel --pid=2
----
+
Inclusion set:
+
-------------------------------
[ ] [ ] [2] [3] [ ] [5] [ ] [ ]
-------------------------------
include::common-lttng-cmd-options-head.txt[]
Tracing domain
~~~~~~~~~~~~~~
One of:
option:-k, option:--kernel::
Remove values from one or more Linux kernel inclusion sets.
option:-u, option:--userspace::
Remove values from one or more user space inclusion sets.
Recording target
~~~~~~~~~~~~~~~~
option:-s 'SESSION', option:--session='SESSION'::
Remove values from one or more inclusion sets of the recording
session named 'SESSION' instead of the current recording session.
Inclusion set selection
~~~~~~~~~~~~~~~~~~~~~~~
option:-p ['PID'[,'PID']...], option:--pid[='PID'[,'PID']...]::
For each 'PID' argument, remove 'PID' from the process ID inclusion
set of the selected recording session and domain.
+
'PID' is the process ID attribute of a process as seen from the root
PID namespace (see man:pid_namespaces(7)).
+
Only available with option:--kernel option.
option:--vpid[='VPID'[,'VPID']...]::
For each 'VPID' argument, remove 'VPID' from the virtual process ID
inclusion set of the selected recording session and domain.
+
'VPID' is the virtual process ID attribute of a process as seen from
the PID namespace of the process (see man:pid_namespaces(7)).
option:--uid[='USER'[,'USER']...]::
For each 'USER' argument, remove 'USER' from the user ID inclusion
set of the selected recording session and domain.
+
'USER' is either:
+
--
* The real user ID (see man:getuid(3)) of a process as seen
from the root user namespace (see man:user_namespaces(7)).
* A user name.
+
The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
the user name resolution on removal from the user ID inclusion set.
--
+
Only available with option:--kernel option.
option:--vuid[='VUSER'[,'VUSER']...]::
For each 'VUSER' argument, remove 'VUSER' from the virtual user ID
inclusion set of the selected recording session and domain.
+
'VUSER' is either:
+
--
* The real user ID (see man:getuid(3)) of a process as seen
from the user namespace (see man:user_namespaces(7)).
* A user name.
+
The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
the user name resolution on removal from the virtual user ID inclusion
set.
--
option:--gid[='GROUP'[,'GROUP']...]::
For each 'GROUP' argument, remove 'GROUP' from the group ID
inclusion set of the selected recording session and domain.
+
'GROUP' is either:
+
--
* The real group ID (see man:getgid(3)) of a process as seen from the
root user namespace (see man:user_namespaces(7)).
* A group name.
+
The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
the group name resolution on removal from the group ID inclusion set.
--
+
Only available with option:--kernel option.
option:--vgid[='VGROUP'[,'VGROUP']...]::
For each 'VGROUP' argument, remove 'VGROUP' from the virtual group
ID inclusion set of the selected recording session and domain.
+
'VGROUP' is either:
+
--
* The real group ID (see man:getgid(3)) of a process as seen
from the user namespace (see man:user_namespaces(7)).
* A group name.
+
The connected LTTng session daemon (see man:lttng-sessiond(8)) performs
the group name resolution on removal from the virtual group ID inclusion
set.
--
Inclusion set operation
~~~~~~~~~~~~~~~~~~~~~~~
option:-a, option:--all::
With one or more empty option:--pid, option:--vpid, option:--uid,
option:--vuid, option:--gid, and option:--vgid options: clear the
selected inclusion sets.
include::common-lttng-cmd-help-options.txt[]
include::common-lttng-cmd-after-options.txt[]
[[examples]]
EXAMPLES
--------
.Remove the PIDs 1728 and 3775 from the Linux kernel process ID inclusion set of the current recording session.
====
See the option:--pid option.
[role="term"]
----
$ lttng untrack --kernel --pid=1728,3775
----
====
.Remove the IDs of a specific groups from the user space virtual group ID inclusion set of a specific recording session.
====
See the option:--vgid and option:--session options.
[role="term"]
----
$ lttng untrack --userspace --session=my-session \
--vgid=docker,mysql
----
====
.Remove all the user IDs from the Linux kernel user ID inclusion set of the current recording session.
====
See the option:--all and option:--uid options.
[role="term"]
----
$ lttng untrack --kernel --all --uid
----
====
include::common-footer.txt[]
SEE ALSO
--------
man:lttng(1),
man:lttng-track(1),
man:lttng-concepts(7)
|