A resource tracker is a _whitelist_ of resources. Tracked resources are
allowed to emit events, provided those events are targeted by enabled
A resource tracker is a _whitelist_ of resources. Tracked resources are
allowed to emit events, provided those events are targeted by enabled
As of this version, the only available tracker is the *PID tracker*. The
process ID (PID) tracker follows one or more process IDs; only the
As of this version, the only available tracker is the *PID tracker*. The
process ID (PID) tracker follows one or more process IDs; only the
With the PID tracker, it is possible, for example, to record all system
calls called by a given process:
With the PID tracker, it is possible, for example, to record all system
calls called by a given process:
-------------------------------------------
lttng enable-event --kernel --all --syscall
lttng track --kernel --pid=2345
-------------------------------------------
lttng enable-event --kernel --all --syscall
lttng track --kernel --pid=2345
-----------------------------------
lttng track --userspace --pid=3,6,7
-----------------------------------
-----------------------------------
lttng track --userspace --pid=3,6,7
-----------------------------------
---------------------------------
lttng untrack --userspace --pid=7
---------------------------------
---------------------------------
lttng untrack --userspace --pid=7
---------------------------------
---------------------------------
lttng track --userspace --pid=1,5
---------------------------------
---------------------------------
lttng track --userspace --pid=1,5
---------------------------------
Should a process with a given ID exit and another process be given this
ID, then the latter would also be allowed to emit events.
Should a process with a given ID exit and another process be given this
ID, then the latter would also be allowed to emit events.