1**-c**, **--cpus** *cpu-list* 2 3 Set the |tool| tracer to run the sample threads in the cpu-list. 4 5 By default, the |tool| tracer runs the sample threads on all CPUs. 6 7**-H**, **--house-keeping** *cpu-list* 8 9 Run rtla control threads only on the given cpu-list. 10 11 If omitted, rtla will attempt to auto-migrate its main thread to any CPU that is not running any workload threads. 12 13**-d**, **--duration** *time[s|m|h|d]* 14 15 Set the duration of the session. 16 17**-D**, **--debug** 18 19 Print debug info. 20 21**-e**, **--event** *sys:event* 22 23 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. 24 25 This option cannot be unset. 26 27**--filter** *<filter>* 28 29 Filter the previous **-e** *sys:event* event with *<filter>*. 30 31 If the same event is specified more than once but with different filters, the last specified filter will be the only one applied. 32 33 For further information about event filtering see https://www.kernel.org/doc/html/latest/trace/events.html#event-filtering. 34 35 This option cannot be unset. 36 37**--trigger** *<trigger>* 38 Enable a trace event trigger to the previous **-e** *sys:event*. 39 40 If the same event is specified more than once but with different triggers, the last specified trigger will be the only one applied. 41 42 If the *hist:* trigger is activated, the output histogram will be automatically saved to a file named *system_event_hist.txt*. 43 For example, the command: 44 45 rtla <command> <mode> -t -e osnoise:irq_noise --trigger="hist:key=desc,duration/1000:sort=desc,duration/1000:vals=hitcount" 46 47 Will automatically save the content of the histogram associated to *osnoise:irq_noise* event in *osnoise_irq_noise_hist.txt*. 48 49 For further information about event trigger see https://www.kernel.org/doc/html/latest/trace/events.html#event-triggers. 50 51 This option cannot be unset. 52 53**-P**, **--priority** *o:prio|r:prio|f:prio|d:runtime:period* 54 55 Set scheduling parameters to the |tool| tracer threads, the format to set the priority are: 56 57 - *o:prio* - use SCHED_OTHER with *prio*; 58 - *r:prio* - use SCHED_RR with *prio*; 59 - *f:prio* - use SCHED_FIFO with *prio*; 60 - *d:runtime[us|ms|s]:period[us|ms|s]* - use SCHED_DEADLINE with *runtime* and *period* in nanoseconds. 61 62 If not set, tracer threads keep their default priority. For rtla user threads, it is set to SCHED_FIFO with priority 95. For kernel threads, see *osnoise* and *timerlat* tracer documentation for the running kernel version. 63 64**-C**, **--cgroup** \[*cgroup*] 65 66 Set a *cgroup* to the tracer's threads. If the **-C** option is passed without arguments, the tracer's thread will inherit **rtla**'s *cgroup*. Otherwise, the threads will be placed on the *cgroup* passed to the option. 67 68 If not set, the behavior differs between workload types. User workloads created by rtla will inherit rtla's cgroup. Kernel workloads are assigned the root cgroup. 69 70**--warm-up** *s* 71 72 After starting the workload, let it run for *s* seconds before starting collecting the data, allowing the system to warm-up. Statistical data generated during warm-up is discarded. 73 74**--trace-buffer-size** *kB* 75 Set the per-cpu trace buffer size in kB for the tracing output. 76 77 If not set, the default tracefs buffer size is used. 78 79**--on-threshold** *action* 80 81 Defines an action to be executed when tracing is stopped on a latency threshold 82 specified by |threshold|. 83 84 Multiple --on-threshold actions may be specified, and they will be executed in 85 the order they are provided. If any action fails, subsequent actions in the list 86 will not be executed. 87 88 Supported actions are: 89 90 - *trace[,file=<filename>]* 91 92 Saves trace output, optionally taking a filename. Alternative to -t/--trace. 93 Note that unlike -t/--trace, specifying this multiple times will result in 94 the trace being saved multiple times, and --no-trace will not disable trace 95 output when enabled through this option. 96 97 - *signal,num=<sig>,pid=<pid>* 98 99 Sends signal to process. "parent" might be specified in place of pid to target 100 the parent process of rtla. 101 102 - *shell,command=<command>* 103 104 Execute shell command. 105 106 - *continue* 107 108 Continue tracing after actions are executed instead of stopping. 109 110 Example: 111 112 $ rtla |tool| |thresharg| 20 --on-threshold trace 113 --on-threshold shell,command="grep ipi_send |tracer|\_trace.txt" 114 --on-threshold signal,num=2,pid=parent 115 116 This will save a trace with the default filename "|tracer|\_trace.txt", print its 117 lines that contain the text "ipi_send" on standard output, and send signal 2 118 (SIGINT) to the parent process. 119 120 Performance Considerations: 121 122 |actionsperf| 123 124 This option cannot be unset. 125 126**--on-end** *action* 127 128 Defines an action to be executed at the end of tracing. 129 130 Multiple --on-end actions can be specified, and they will be executed in the order 131 they are provided. If any action fails, subsequent actions in the list will not be 132 executed. 133 134 See the documentation for **--on-threshold** for the list of supported actions, with 135 the exception that *continue* has no effect. 136 137 Example: 138 139 $ rtla |tool| -d 5s --on-end trace 140 141 This runs rtla with the default options, and saves trace output at the end. 142 143 This option cannot be unset. 144 145**-h**, **--help** 146 147 Print help menu. 148