xref: /linux/Documentation/tools/rtla/common_options.rst (revision 1a754893653f73724d007c2cf95cf6c47d5114c4)
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
21*1a754893SDaniel Bristot de Oliveira**--trigger** *<trigger>*
22*1a754893SDaniel Bristot de Oliveira        Enable a trace event trigger to the previous **-e** *sys:event*. For further information about event trigger see https://www.kernel.org/doc/html/latest/trace/events.html#event-triggers.
23*1a754893SDaniel Bristot de Oliveira
24b1be4830SDaniel Bristot de Oliveira**-P**, **--priority** *o:prio|r:prio|f:prio|d:runtime:period*
25b1be4830SDaniel Bristot de Oliveira
26b1be4830SDaniel Bristot de Oliveira        Set scheduling parameters to the osnoise tracer threads, the format to set the priority are:
27b1be4830SDaniel Bristot de Oliveira
28b1be4830SDaniel Bristot de Oliveira        - *o:prio* - use SCHED_OTHER with *prio*;
29b1be4830SDaniel Bristot de Oliveira        - *r:prio* - use SCHED_RR with *prio*;
30b1be4830SDaniel Bristot de Oliveira        - *f:prio* - use SCHED_FIFO with *prio*;
31b1be4830SDaniel Bristot de Oliveira        - *d:runtime[us|ms|s]:period[us|ms|s]* - use SCHED_DEADLINE with *runtime* and *period* in nanoseconds.
32b1be4830SDaniel Bristot de Oliveira
33b1be4830SDaniel Bristot de Oliveira**-h**, **--help**
34b1be4830SDaniel Bristot de Oliveira
35b1be4830SDaniel Bristot de Oliveira        Print help menu.
36