diff options
author | Andi Kleen <ak@linux.intel.com> | 2019-03-11 10:44:59 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-03-11 15:33:19 -0400 |
commit | ca52babe033f2a0a535ce7c814e54a44cead1f15 (patch) | |
tree | 11ff2eed0ed21d23507ac287992f67efba46815b | |
parent | 4968ac8fb7c378e2bc40b7e9bd97768fa8c7aa32 (diff) |
perf tools: Add some new tips describing the new options
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20190311144502.15423-9-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/Documentation/tips.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/Documentation/tips.txt b/tools/perf/Documentation/tips.txt index 849599f39c5e..869965d629ce 100644 --- a/tools/perf/Documentation/tips.txt +++ b/tools/perf/Documentation/tips.txt | |||
@@ -15,6 +15,7 @@ To see callchains in a more compact form: perf report -g folded | |||
15 | Show individual samples with: perf script | 15 | Show individual samples with: perf script |
16 | Limit to show entries above 5% only: perf report --percent-limit 5 | 16 | Limit to show entries above 5% only: perf report --percent-limit 5 |
17 | Profiling branch (mis)predictions with: perf record -b / perf report | 17 | Profiling branch (mis)predictions with: perf record -b / perf report |
18 | To show assembler sample contexts use perf record -b / perf script -F +brstackinsn --xed | ||
18 | Treat branches as callchains: perf report --branch-history | 19 | Treat branches as callchains: perf report --branch-history |
19 | To count events in every 1000 msec: perf stat -I 1000 | 20 | To count events in every 1000 msec: perf stat -I 1000 |
20 | Print event counts in CSV format with: perf stat -x, | 21 | Print event counts in CSV format with: perf stat -x, |
@@ -34,3 +35,9 @@ Show current config key-value pairs: perf config --list | |||
34 | Show user configuration overrides: perf config --user --list | 35 | Show user configuration overrides: perf config --user --list |
35 | To add Node.js USDT(User-Level Statically Defined Tracing): perf buildid-cache --add `which node` | 36 | To add Node.js USDT(User-Level Statically Defined Tracing): perf buildid-cache --add `which node` |
36 | To report cacheline events from previous recording: perf c2c report | 37 | To report cacheline events from previous recording: perf c2c report |
38 | To browse sample contexts use perf report --sample 10 and select in context menu | ||
39 | To separate samples by time use perf report --sort time,overhead,sym | ||
40 | To set sample time separation other than 100ms with --sort time use --time-quantum | ||
41 | Add -I to perf report to sample register values visible in perf report context. | ||
42 | To show IPC for sampling periods use perf record -e '{cycles,instructions}:S' and then browse context | ||
43 | To show context switches in perf report sample context add --switch-events to perf record. | ||