Skip to contentSkip to conversation

tools/perf: Document perf-stat's --detailed option

PATCH Applied Borislav Petkov 3 participants 3 messages Mar 7, 2016 – Mar 8, 2016 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/perf: Document perf-stat's --detailed option

From: Borislav Petkov <[email protected]>

I'm surprised this remained undocumented since at least 2011. And it is actually a very useful switch, as Steve and I came to realize recently.

Add the text from

2cba3ffb9a9d ("perf stat: Add -d -d and -d -d -d options to show more CPU events")

which added the incrementing aspect to -d.

Cc Arnaldo Carvalho de Melo <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>
---
 tools/perf/Documentation/perf-stat.txt | 8 ++++++++
 1 file changed, 8 insertions(+)
tools/perf/Documentation/perf-stat.txt +8 -0
index 52ef7a9d50aa..14d9e8ffaff7 100644
@@ -69,6 +69,14 @@ report::
 --scale::
 	scale/normalize counter values
 
+-d::
+--detailed::
+	print more detailed statistics, can be specified up to 3 times
+
+	   -d:          detailed events, L1 and LLC data cache
+        -d -d:     more detailed events, dTLB and iTLB events
+     -d -d -d:     very detailed events, adding prefetch events
+
 -r::
 --repeat=<n>::
 	repeat command and print average + stddev (max: 100). 0 means forever.
Signature · 1 line
2.3.5
maintainer Applied
#1 lore raw

Em Mon, Mar 07, 2016 at 11:41:34AM +0100, Borislav Petkov escreveu:

Quoted 10 lines

From: Borislav Petkov <[email protected]>

I'm surprised this remained undocumented since at least 2011. And it is actually a very useful switch, as Steve and I came to realize recently.

Add the text from

2cba3ffb9a9d ("perf stat: Add -d -d and -d -d -d options to show more CPU events")

which added the incrementing aspect to -d.

Thanks, applied.

- Arnaldo

#2 lore raw

[tip:perf/core] perf stat: Document --detailed option

In reply to Borislav Petkov
perf stat: Document --detailed option
Commit-ID:  f594bae08183fb6b57db55387794ece3e1edf6f6
Gitweb:     http://git.kernel.org/tip/f594bae08183fb6b57db55387794ece3e1edf6f6
Author:     Borislav Petkov <[email protected]>
AuthorDate: Mon, 7 Mar 2016 16:44:44 -0300
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 8 Mar 2016 10:11:18 +0100

perf stat: Document --detailed option

I'm surprised this remained undocumented since at least 2011. And it is actually a very useful switch, as Steve and I came to realize recently.

Add the text from

2cba3ffb9a9d ("perf stat: Add -d -d and -d -d -d options to show more CPU events")

which added the incrementing aspect to -d.

Cc Alexander Shishkin <[email protected]>
Cc David Ahern <[email protected]>
Cc Davidlohr Bueso <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Mel Gorman <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Thomas Gleixner <[email protected]>
Fixes 2cba3ffb9a9d ("perf stat: Add -d -d and -d -d -d options to show more CPU events")
---
 tools/perf/Documentation/perf-stat.txt | 8 ++++++++
 1 file changed, 8 insertions(+)
tools/perf/Documentation/perf-stat.txt +8 -0
index 52ef7a9..14d9e8f 100644
@@ -69,6 +69,14 @@ report::
 --scale::
 	scale/normalize counter values
 
+-d::
+--detailed::
+	print more detailed statistics, can be specified up to 3 times
+
+	   -d:          detailed events, L1 and LLC data cache
+        -d -d:     more detailed events, dTLB and iTLB events
+     -d -d -d:     very detailed events, adding prefetch events
+
 -r::
 --repeat=<n>::
 	repeat command and print average + stddev (max: 100). 0 means forever.