xref: /linux/Documentation/tools/rtla/common_options.rst (revision 761916fd02c2525139aca957b8a53fda1d8b3616)
1b1be4830SDaniel Bristot de Oliveira**-c**, **--cpus** *cpu-list*
2b1be4830SDaniel Bristot de Oliveira
3b1be4830SDaniel Bristot de Oliveira        Set the osnoise tracer to run the sample threads in the cpu-list.
4b1be4830SDaniel Bristot de Oliveira
5b1be4830SDaniel Bristot de Oliveira**-d**, **--duration** *time[s|m|h|d]*
6b1be4830SDaniel Bristot de Oliveira
7b1be4830SDaniel Bristot de Oliveira        Set the duration of the session.
8b1be4830SDaniel Bristot de Oliveira
9b1be4830SDaniel Bristot de Oliveira**-D**, **--debug**
10b1be4830SDaniel Bristot de Oliveira
11b1be4830SDaniel Bristot de Oliveira        Print debug info.
12b1be4830SDaniel Bristot de Oliveira
13b1be4830SDaniel Bristot de Oliveira**-t**, **--trace**\[*=file*]
14b1be4830SDaniel Bristot de Oliveira
15b1be4830SDaniel Bristot de Oliveira        Save the stopped trace to [*file|osnoise_trace.txt*].
16b1be4830SDaniel Bristot de Oliveira
1751d64c3aSDaniel Bristot de Oliveira**-e**, **--event** *sys:event*
1851d64c3aSDaniel Bristot de Oliveira
1951d64c3aSDaniel Bristot de Oliveira        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.
2051d64c3aSDaniel Bristot de Oliveira
2144f3a37dSDaniel Bristot de Oliveira**--filter** *<filter>*
2244f3a37dSDaniel Bristot de Oliveira
2344f3a37dSDaniel Bristot de Oliveira        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.
2444f3a37dSDaniel Bristot de Oliveira
251a754893SDaniel Bristot de Oliveira**--trigger** *<trigger>*
26*761916fdSDaniel Bristot de Oliveira        Enable a trace event trigger to the previous **-e** *sys:event*.
27*761916fdSDaniel Bristot de Oliveira        If the *hist:* trigger is activated, the output histogram will be automatically saved to a file named *system_event_hist.txt*.
28*761916fdSDaniel Bristot de Oliveira        For example, the command:
29*761916fdSDaniel Bristot de Oliveira
30*761916fdSDaniel Bristot de Oliveira        rtla <command> <mode> -t -e osnoise:irq_noise --trigger="hist:key=desc,duration/1000:sort=desc,duration/1000:vals=hitcount"
31*761916fdSDaniel Bristot de Oliveira
32*761916fdSDaniel Bristot de Oliveira        Will automatically save the content of the histogram associated to *osnoise:irq_noise* event in *osnoise_irq_noise_hist.txt*.
33*761916fdSDaniel Bristot de Oliveira
34*761916fdSDaniel Bristot de Oliveira        For further information about event trigger see https://www.kernel.org/doc/html/latest/trace/events.html#event-triggers.
351a754893SDaniel Bristot de Oliveira
36b1be4830SDaniel Bristot de Oliveira**-P**, **--priority** *o:prio|r:prio|f:prio|d:runtime:period*
37b1be4830SDaniel Bristot de Oliveira
38b1be4830SDaniel Bristot de Oliveira        Set scheduling parameters to the osnoise tracer threads, the format to set the priority are:
39b1be4830SDaniel Bristot de Oliveira
40b1be4830SDaniel Bristot de Oliveira        - *o:prio* - use SCHED_OTHER with *prio*;
41b1be4830SDaniel Bristot de Oliveira        - *r:prio* - use SCHED_RR with *prio*;
42b1be4830SDaniel Bristot de Oliveira        - *f:prio* - use SCHED_FIFO with *prio*;
43b1be4830SDaniel Bristot de Oliveira        - *d:runtime[us|ms|s]:period[us|ms|s]* - use SCHED_DEADLINE with *runtime* and *period* in nanoseconds.
44b1be4830SDaniel Bristot de Oliveira
45b1be4830SDaniel Bristot de Oliveira**-h**, **--help**
46b1be4830SDaniel Bristot de Oliveira
47b1be4830SDaniel Bristot de Oliveira        Print help menu.
48