Ingo Molnar | 0a02ad9 | 2009-09-11 12:12:54 +0200 | [diff] [blame] | 1 | perf-trace(1) |
| 2 | ============== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | perf-trace - Read perf.data (created by perf record) and display trace output |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
Tom Zanussi | a600512 | 2009-12-15 02:53:40 -0600 | [diff] [blame] | 11 | 'perf trace' {record <script> | report <script> [args] } |
Ingo Molnar | 0a02ad9 | 2009-09-11 12:12:54 +0200 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | This command reads the input file and displays the trace recorded. |
| 16 | |
Tom Zanussi | a600512 | 2009-12-15 02:53:40 -0600 | [diff] [blame] | 17 | There are several variants of perf trace: |
| 18 | |
| 19 | 'perf trace' to see a detailed trace of the workload that was |
| 20 | recorded. |
| 21 | |
| 22 | 'perf trace record <script>' to record the events required for 'perf |
| 23 | trace report'. <script> is the name displayed in the output of |
| 24 | 'perf trace --list' i.e. the actual script name minus any language |
| 25 | extension. |
| 26 | |
| 27 | 'perf trace report <script>' to run and display the results of |
| 28 | <script>. <script> is the name displayed in the output of 'perf |
| 29 | trace --list' i.e. the actual script name minus any language |
| 30 | extension. The perf.data output from a previous run of 'perf trace |
| 31 | record <script>' is used and should be present for this command to |
| 32 | succeed. |
| 33 | |
Ingo Molnar | 0a02ad9 | 2009-09-11 12:12:54 +0200 | [diff] [blame] | 34 | OPTIONS |
| 35 | ------- |
| 36 | -D:: |
| 37 | --dump-raw-trace=:: |
| 38 | Display verbose dump of the trace data. |
| 39 | |
Tom Zanussi | a600512 | 2009-12-15 02:53:40 -0600 | [diff] [blame] | 40 | -L:: |
| 41 | --Latency=:: |
| 42 | Show latency attributes (irqs/preemption disabled, etc). |
| 43 | |
| 44 | -l:: |
| 45 | --list=:: |
| 46 | Display a list of available trace scripts. |
| 47 | |
Tom Zanussi | f526d68 | 2010-01-27 02:27:52 -0600 | [diff] [blame^] | 48 | -s ['lang']:: |
Tom Zanussi | 89fbf0b | 2009-11-25 01:15:51 -0600 | [diff] [blame] | 49 | --script=:: |
| 50 | Process trace data with the given script ([lang]:script[.ext]). |
Tom Zanussi | f526d68 | 2010-01-27 02:27:52 -0600 | [diff] [blame^] | 51 | If the string 'lang' is specified in place of a script name, a |
| 52 | list of supported languages will be displayed instead. |
Tom Zanussi | 89fbf0b | 2009-11-25 01:15:51 -0600 | [diff] [blame] | 53 | |
| 54 | -g:: |
| 55 | --gen-script=:: |
| 56 | Generate perf-trace.[ext] starter script for given language, |
| 57 | using current perf.data. |
| 58 | |
Ingo Molnar | 0a02ad9 | 2009-09-11 12:12:54 +0200 | [diff] [blame] | 59 | SEE ALSO |
| 60 | -------- |
Tom Zanussi | 89fbf0b | 2009-11-25 01:15:51 -0600 | [diff] [blame] | 61 | linkperf:perf-record[1], linkperf:perf-trace-perl[1] |