2009-09-11 03:12:54 -07:00
|
|
|
perf-trace(1)
|
2010-05-05 07:23:27 -07:00
|
|
|
=============
|
2009-09-11 03:12:54 -07:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
perf-trace - Read perf.data (created by perf record) and display trace output
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
[verse]
|
2009-12-15 01:53:40 -07:00
|
|
|
'perf trace' {record <script> | report <script> [args] }
|
2009-09-11 03:12:54 -07:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
This command reads the input file and displays the trace recorded.
|
|
|
|
|
2009-12-15 01:53:40 -07:00
|
|
|
There are several variants of perf trace:
|
|
|
|
|
|
|
|
'perf trace' to see a detailed trace of the workload that was
|
|
|
|
recorded.
|
|
|
|
|
2010-01-27 01:28:03 -07:00
|
|
|
You can also run a set of pre-canned scripts that aggregate and
|
|
|
|
summarize the raw trace data in various ways (the list of scripts is
|
|
|
|
available via 'perf trace -l'). The following variants allow you to
|
|
|
|
record and run those scripts:
|
|
|
|
|
2009-12-15 01:53:40 -07:00
|
|
|
'perf trace record <script>' to record the events required for 'perf
|
|
|
|
trace report'. <script> is the name displayed in the output of
|
|
|
|
'perf trace --list' i.e. the actual script name minus any language
|
|
|
|
extension.
|
|
|
|
|
|
|
|
'perf trace report <script>' to run and display the results of
|
|
|
|
<script>. <script> is the name displayed in the output of 'perf
|
|
|
|
trace --list' i.e. the actual script name minus any language
|
|
|
|
extension. The perf.data output from a previous run of 'perf trace
|
|
|
|
record <script>' is used and should be present for this command to
|
|
|
|
succeed.
|
|
|
|
|
2010-01-27 01:28:03 -07:00
|
|
|
See the 'SEE ALSO' section for links to language-specific
|
|
|
|
information on how to write and run your own trace scripts.
|
|
|
|
|
2009-09-11 03:12:54 -07:00
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
-D::
|
|
|
|
--dump-raw-trace=::
|
|
|
|
Display verbose dump of the trace data.
|
|
|
|
|
2009-12-15 01:53:40 -07:00
|
|
|
-L::
|
|
|
|
--Latency=::
|
|
|
|
Show latency attributes (irqs/preemption disabled, etc).
|
|
|
|
|
|
|
|
-l::
|
|
|
|
--list=::
|
|
|
|
Display a list of available trace scripts.
|
|
|
|
|
2010-01-27 01:27:52 -07:00
|
|
|
-s ['lang']::
|
2009-11-25 00:15:51 -07:00
|
|
|
--script=::
|
|
|
|
Process trace data with the given script ([lang]:script[.ext]).
|
2010-01-27 01:27:52 -07:00
|
|
|
If the string 'lang' is specified in place of a script name, a
|
|
|
|
list of supported languages will be displayed instead.
|
2009-11-25 00:15:51 -07:00
|
|
|
|
|
|
|
-g::
|
|
|
|
--gen-script=::
|
|
|
|
Generate perf-trace.[ext] starter script for given language,
|
|
|
|
using current perf.data.
|
|
|
|
|
2009-09-11 03:12:54 -07:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2010-01-27 01:28:03 -07:00
|
|
|
linkperf:perf-record[1], linkperf:perf-trace-perl[1],
|
|
|
|
linkperf:perf-trace-python[1]
|