1PERF-ANNOTATE(1)                  perf Manual                 PERF-ANNOTATE(1)
2
3
4

NAME

6       perf-annotate - Read perf.data (created by perf record) and display
7       annotated code
8

SYNOPSIS

10       perf annotate [-i <file> | --input=file] [symbol_name]
11

DESCRIPTION

13       This command reads the input file and displays an annotated version of
14       the code. If the object file has debug symbols then the source code
15       will be displayed alongside assembly code.
16
17       If there is no debug info in the object, then annotated assembly is
18       displayed.
19

OPTIONS

21       -i, --input=
22           Input file name. (default: perf.data unless stdin is a fifo)
23
24       -d, --dsos=<dso[,dso...]>
25           Only consider symbols in these dsos.
26
27       -s, --symbol=<symbol>
28           Symbol to annotate.
29
30       -f, --force
31           Don’t do ownership validation.
32
33       -v, --verbose
34           Be more verbose. (Show symbol address, etc)
35
36       -q, --quiet
37           Do not show any message. (Suppress -v)
38
39       -n, --show-nr-samples
40           Show the number of samples for each symbol
41
42       -D, --dump-raw-trace
43           Dump raw trace in ASCII.
44
45       -k, --vmlinux=<file>
46           vmlinux pathname.
47
48       -m, --modules
49           Load module symbols. WARNING: use only with -k and LIVE kernel.
50
51       -l, --print-line
52           Print matching source lines (may be slow).
53
54       -P, --full-paths
55           Don’t shorten the displayed pathnames.
56
57       --stdio
58           Use the stdio interface.
59
60       --stdio-color
61           always, never or auto, allowing configuring color output via the
62           command line, in addition to via "color.ui" .perfconfig. Use
63           --stdio-color always to generate color even when redirecting to a
64           pipe or file. Using just --stdio-color is equivalent to using
65           always.
66
67       --tui
68           Use the TUI interface. Use of --tui requires a tty, if one is not
69           present, as when piping to other commands, the stdio interface is
70           used. This interfaces starts by centering on the line with more
71           samples, TAB/UNTAB cycles through the lines with more samples.
72
73       --gtk
74           Use the GTK interface.
75
76       -C, --cpu
77           Only report samples for the list of CPUs provided. Multiple CPUs
78           can be provided as a comma-separated list with no space: 0,1.
79           Ranges of CPUs are specified with -: 0-2. Default is to report
80           samples on all CPUs.
81
82       --asm-raw
83           Show raw instruction encoding of assembly instructions.
84
85       --show-total-period
86           Show a column with the sum of periods.
87
88       --source
89           Interleave source code with assembly code. Enabled by default,
90           disable with --no-source.
91
92       --symfs=<directory>
93           Look for files with symbols relative to this directory.
94
95       -M, --disassembler-style=
96           Set disassembler style for objdump.
97
98       --objdump=<path>
99           Path to objdump binary.
100
101       --skip-missing
102           Skip symbols that cannot be annotated.
103
104       --group
105           Show event group information together
106

SEE ALSO

108       perf-record(1), perf-report(1)
109
110
111
112perf                              06/18/2019                  PERF-ANNOTATE(1)
Impressum