Documentation/rtla: Document unsetting options

Add an appendix documenting how to unset options in RTLA. For options
where unsetting is currently not supported, add a note into the
respective section.

An additional note is added for --on-threshold trace. As it is
considered distinct from --trace, it is not reverted by --no-trace.

Reviewed-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20260629083654.1548925-4-tglozar@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
This commit is contained in:
Tomas Glozar 2026-06-29 10:36:54 +02:00
parent 05f4bcb2e2
commit c1bb78002a
4 changed files with 37 additions and 1 deletions

View File

@ -1,5 +1,22 @@
.. SPDX-License-Identifier: GPL-2.0
UNSETTING OPTIONS
=================
The effect of most command line options can be reverted by prepending "no-" to
the long variant of the option, for example:
$ rtla timerlat top -p 100 --no-period
resets the period back to the default value of 1000 us.
If a command line option sets multiple RTLA parameters at once, the inverted
option will revert all of them, even if they were not set by the particular
option. For example, since using "--auto" implies "--trace", specifying
"--trace --no-auto" will also disable trace output, just like if "--no-trace"
was specified.
SIGINT BEHAVIOR
===============

View File

@ -22,10 +22,14 @@
Enable an event in the trace (**-t**) session. The argument can be a specific event, e.g., **-e** *sched:sched_switch*, or all events of a system group, e.g., **-e** *sched*. Multiple **-e** are allowed. It is only active when **-t** or **-a** are set.
This option cannot be unset.
**--filter** *<filter>*
Filter the previous **-e** *sys:event* event with *<filter>*. For further information about event filtering see https://www.kernel.org/doc/html/latest/trace/events.html#event-filtering.
This option cannot be unset.
**--trigger** *<trigger>*
Enable a trace event trigger to the previous **-e** *sys:event*.
If the *hist:* trigger is activated, the output histogram will be automatically saved to a file named *system_event_hist.txt*.
@ -37,6 +41,8 @@
For further information about event trigger see https://www.kernel.org/doc/html/latest/trace/events.html#event-triggers.
This option cannot be unset.
**-P**, **--priority** *o:prio|r:prio|f:prio|d:runtime:period*
Set scheduling parameters to the |tool| tracer threads, the format to set the priority are:
@ -78,7 +84,8 @@
Saves trace output, optionally taking a filename. Alternative to -t/--trace.
Note that unlike -t/--trace, specifying this multiple times will result in
the trace being saved multiple times.
the trace being saved multiple times, and --no-trace will not disable trace
output when enabled through this option.
- *signal,num=<sig>,pid=<pid>*
@ -107,6 +114,8 @@
|actionsperf|
This option cannot be unset.
**--on-end** *action*
Defines an action to be executed at the end of tracing.
@ -124,6 +133,8 @@
This runs rtla with the default options, and saves trace output at the end.
This option cannot be unset.
**-h**, **--help**
Print help menu.

View File

@ -24,11 +24,15 @@
Stop the trace if a single sample is higher than the argument in microseconds.
If **-T** is set, it will also save the trace to the output.
This option cannot be unset.
**-S**, **--stop-total** *us*
Stop the trace if the total sample is higher than the argument in microseconds.
If **-T** is set, it will also save the trace to the output.
This option cannot be unset.
**-T**, **--threshold** *us*
Specify the minimum delta between two time reads to be considered noise.

View File

@ -23,10 +23,14 @@
Stop trace if the *IRQ* latency is higher than the argument in us.
This option cannot be unset.
**-T**, **--thread** *us*
Stop trace if the *Thread* latency is higher than the argument in us.
This option cannot be unset.
**-s**, **--stack** *us*
Save the stack trace at the *IRQ* if a *Thread* latency is higher than the