perf-trace.txt 2.0 KB
Newer Older
I
Ingo Molnar 已提交
1 2 3 4 5 6 7 8 9 10
perf-trace(1)
==============

NAME
----
perf-trace - Read perf.data (created by perf record) and display trace output

SYNOPSIS
--------
[verse]
11
'perf trace' {record <script> | report <script> [args] }
I
Ingo Molnar 已提交
12 13 14 15 16

DESCRIPTION
-----------
This command reads the input file and displays the trace recorded.

17 18 19 20 21
There are several variants of perf trace:

  'perf trace' to see a detailed trace of the workload that was
  recorded.

22 23 24 25 26
  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:

27 28 29 30 31 32 33 34 35 36 37 38
  '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.

39 40 41
  See the 'SEE ALSO' section for links to language-specific
  information on how to write and run your own trace scripts.

I
Ingo Molnar 已提交
42 43 44 45 46 47
OPTIONS
-------
-D::
--dump-raw-trace=::
        Display verbose dump of the trace data.

48 49 50 51 52 53 54 55
-L::
--Latency=::
        Show latency attributes (irqs/preemption disabled, etc).

-l::
--list=::
        Display a list of available trace scripts.

56
-s ['lang']::
57 58
--script=::
        Process trace data with the given script ([lang]:script[.ext]).
59 60
	If the string 'lang' is specified in place of a script name, a
        list of supported languages will be displayed instead.
61 62 63 64 65 66

-g::
--gen-script=::
        Generate perf-trace.[ext] starter script for given language,
        using current perf.data.

I
Ingo Molnar 已提交
67 68
SEE ALSO
--------
69 70
linkperf:perf-record[1], linkperf:perf-trace-perl[1],
linkperf:perf-trace-python[1]