blob: e1a369b4056d689d33d47f4b5a5baf5358130432 [file] [log] [blame]
Mike Dodd8cfa7022010-11-17 11:12:26 -08001.TH OPANNOTATE 1 "@DATE@" "oprofile @VERSION@"
2.UC 4
3.SH NAME
4opannotate \- produce source or assembly annotated with profile data
5.SH SYNOPSIS
6.br
7.B opannotate
8[
9.I options
10]
11[profile specification]
12.SH DESCRIPTION
13
14.B opannotate
15outputs annotated source and/or assembly from profile data of an OProfile
16session. See oprofile(1) for how to write profile specifications.
17
18.SH OPTIONS
19.TP
20.BI "--assembly / -a"
21Output annotated assembly. If this is combined with --source, then mixed
22source / assembly annotations are output.
23.br
24.TP
25.BI "--demangle / -D none|smart|normal"
26none: no demangling. normal: use default demangler (default) smart: use
27pattern-matching to make C++ symbol demangling more readable.
28.br
29.TP
30.BI "--exclude-dependent / -x"
31Do not include application-specific images for libraries, kernel modules
32and the kernel. This option only makes sense if the profile session
33used --separate.
34.br
35.TP
36.BI "--exclude-file [files]"
37Exclude all files in the given comma-separated list of glob patterns.
38.br
39.TP
40.BI "--exclude-symbols / -e [symbols]"
41Exclude all the symbols in the given comma-separated list.
42.br
43.TP
44.BI "--help / -? / --usage"
45Show help message.
46.br
47.TP
48.BI "--image-path / -p [paths]"
49Comma-separated list of additional paths to search for binaries.
50This is needed to find modules in kernels 2.6 and upwards.
51.br
52.TP
53.BI "--root / -R [path]"
54A path to a filesystem to search for additional binaries.
55.br
56.TP
57.BI "--include-file [files]"
58Only include files in the given comma-separated list of glob patterns.
59.br
60.TP
61.BI "--include-symbols / -i [symbols]"
62Only include symbols in the given comma-separated list.
63.br
64.TP
65.BI "--objdump-params [params]"
66Pass the given parameters as extra values when calling objdump.
67.br
68.TP
69.BI "--output-dir / -o [dir]"
70Output directory. This makes opannotate output one annotated file for each
71source file. This option can't be used in conjunction with --assembly.
72.br
73.TP
74.BI "--search-dirs / -d [paths]"
75Comma-separated list of paths to search for source files. You may need to use
76this option when the debug information for an image contains relative paths.
77.br
78.TP
79.BI "--base-dirs / -b [paths]"
80Comma-separated list of paths to strip from debug source files, prior to
81looking for them in --search-dirs.
82.br
83.TP
84.BI "--session-dir="dir_path
85Use sample database out of directory dir_path instead of the default location (/var/lib/oprofile).
86.br
87.TP
88.BI "--source / -s"
89Output annotated source. This requires debugging information to be available
90for the binaries.
91.br
92.TP
93.BI "--threshold / -t [percentage]"
94Only output data for symbols that have more than the given percentage
95of total samples.
96.br
97.TP
98.BI "--verbose / -V [options]"
99Give verbose debugging output.
100.br
101.TP
102.BI "--version / -v"
103Show version.
104
105.SH ENVIRONMENT
106No special environment variables are recognised by opannotate.
107
108.SH FILES
109.TP
110.I /var/lib/oprofile/samples/
111The location of the generated sample files.
112
113.SH VERSION
114.TP
115This man page is current for @PACKAGE@-@VERSION@.
116
117.SH SEE ALSO
118.BR @OP_DOCDIR@,
119.BR oprofile(1)