Skip to content

Commit b1be483

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
rtla: Add rtla osnoise top documentation
Man page for rtla osnoise top mode. Link: https://lkml.kernel.org/r/445aa2173ca152fc2e68719e3c1a2547dd01efd3.1639158831.git.bristot@kernel.org Cc: Tao Zhou <tao.zhou@linux.dev> Cc: Ingo Molnar <mingo@redhat.com> Cc: Tom Zanussi <zanussi@kernel.org> Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Clark Williams <williams@redhat.com> Cc: John Kacur <jkacur@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Daniel Bristot de Oliveira <bristot@kernel.org> Cc: linux-rt-users@vger.kernel.org Cc: linux-trace-devel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 496082d commit b1be483

File tree

4 files changed

+109
-0
lines changed

4 files changed

+109
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
**-c**, **--cpus** *cpu-list*
2+
3+
Set the osnoise tracer to run the sample threads in the cpu-list.
4+
5+
**-d**, **--duration** *time[s|m|h|d]*
6+
7+
Set the duration of the session.
8+
9+
**-D**, **--debug**
10+
11+
Print debug info.
12+
13+
**-t**, **--trace**\[*=file*]
14+
15+
Save the stopped trace to [*file|osnoise_trace.txt*].
16+
17+
**-P**, **--priority** *o:prio|r:prio|f:prio|d:runtime:period*
18+
19+
Set scheduling parameters to the osnoise tracer threads, the format to set the priority are:
20+
21+
- *o:prio* - use SCHED_OTHER with *prio*;
22+
- *r:prio* - use SCHED_RR with *prio*;
23+
- *f:prio* - use SCHED_FIFO with *prio*;
24+
- *d:runtime[us|ms|s]:period[us|ms|s]* - use SCHED_DEADLINE with *runtime* and *period* in nanoseconds.
25+
26+
**-h**, **--help**
27+
28+
Print help menu.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**-p**, **--period** *us*
2+
3+
Set the *osnoise* tracer period in microseconds.
4+
5+
**-r**, **--runtime** *us*
6+
7+
Set the *osnoise* tracer runtime in microseconds.
8+
9+
**-s**, **--stop** *us*
10+
11+
Stop the trace if a single sample is higher than the argument in microseconds.
12+
If **-T** is set, it will also save the trace to the output.
13+
14+
**-S**, **--stop-total** *us*
15+
16+
Stop the trace if the total sample is higher than the argument in microseconds.
17+
If **-T** is set, it will also save the trace to the output.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**-q**, **--quiet**
2+
3+
Print only a summary at the end of the session.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
===================
2+
rtla-osnoise-top
3+
===================
4+
-----------------------------------------------
5+
Display a summary of the operating system noise
6+
-----------------------------------------------
7+
8+
:Manual section: 1
9+
10+
SYNOPSIS
11+
========
12+
**rtla osnoise top** [*OPTIONS*]
13+
14+
DESCRIPTION
15+
===========
16+
.. include:: common_osnoise_description.rst
17+
18+
**rtla osnoise top** collects the periodic summary from the *osnoise* tracer,
19+
including the counters of the occurrence of the interference source,
20+
displaying the results in a user-friendly format.
21+
22+
The tool also allows many configurations of the *osnoise* tracer and the
23+
collection of the tracer output.
24+
25+
OPTIONS
26+
=======
27+
.. include:: common_osnoise_options.rst
28+
29+
.. include:: common_top_options.rst
30+
31+
.. include:: common_options.rst
32+
33+
EXAMPLE
34+
=======
35+
In the example below, the **rtla osnoise top** tool is set to run with a
36+
real-time priority *FIFO:1*, on CPUs *0-3*, for *900ms* at each period
37+
(*1s* by default). The reason for reducing the runtime is to avoid starving
38+
the rtla tool. The tool is also set to run for *one minute* and to display
39+
a summary of the report at the end of the session::
40+
41+
[root@f34 ~]# rtla osnoise top -P F:1 -c 0-3 -r 900000 -d 1M -q
42+
Operating System Noise
43+
duration: 0 00:01:00 | time is in us
44+
CPU Period Runtime Noise % CPU Aval Max Noise Max Single HW NMI IRQ Softirq Thread
45+
0 #59 53100000 304896 99.42580 6978 56 549 0 53111 1590 13
46+
1 #59 53100000 338339 99.36282 8092 24 399 0 53130 1448 31
47+
2 #59 53100000 290842 99.45227 6582 39 855 0 53110 1406 12
48+
3 #59 53100000 204935 99.61405 6251 33 290 0 53156 1460 12
49+
50+
SEE ALSO
51+
========
52+
53+
**rtla-osnoise**\(1), **rtla-osnoise-hist**\(1)
54+
55+
Osnoise tracer documentation: <https://www.kernel.org/doc/html/latest/trace/osnoise-tracer.html>
56+
57+
AUTHOR
58+
======
59+
Written by Daniel Bristot de Oliveira <bristot@kernel.org>
60+
61+
.. include:: common_appendix.rst

0 commit comments

Comments
 (0)