* Always use macros when possible (link to other LTTng man page,
command-line option, NOT, etc.).
- * Use callouts for command-line examples.
+ * Use callouts with the `term` role for command-line examples.
* Always refer to _long_ options in the text.
* Use the `option:--option=parameter` format (with `=`) when providing
a parameter to long options.
(Last Level Cache) misses information (use `lttng add-context --list` to
get the list of available PMU counters).
+[role="term"]
------------------------------------------------------------------------
lttng create calibrate-function
lttng enable-event calibrate --kernel \
For example, consider this command:
+[role="term"]
-----------------------------------------------------
lttng enable-channel --kernel --tracefile-size=4096 \
--tracefile-count=32 my-channel
For example, consider the following commands:
+[role="term"]
----------------------------------------------------------------
lttng enable-event --userspace hello:world
lttng enable-event --userspace hello:world --loglevel=TRACE_INFO
This command is the equivalent of:
+[role="term"]
--------------------
lttng COMMAND --help
--------------------
This command is the exact equivalent of:
+[role="term"]
---------------------
lttng list CURSESSION
---------------------
With the PID tracker, it is possible, for example, to record all system
calls called by a given process:
+[role="term"]
-------------------------------------------
lttng enable-event --kernel --all --syscall
lttng track --kernel --pid=2345
Command:
+[role="term"]
-----------------------------------
lttng track --userspace --pid=3,6,7
-----------------------------------
Command:
+[role="term"]
---------------------------------
lttng untrack --userspace --pid=7
---------------------------------
Command:
+[role="term"]
---------------------------------
lttng track --userspace --pid=1,5
---------------------------------
Command:
+[role="term"]
------------
lttng create
------------
Command:
+[role="term"]
-------------------------------------
lttng untrack --userspace --pid --all
-------------------------------------
Commands:
+[role="term"]
----------------------------------
lttng enable-event --userspace ...
lttng start
-...
+# ...
lttng track --userspace --pid=3,5
----------------------------------
Command:
+[role="term"]
-------------------------------
lttng track --userspace --pid=2
-------------------------------