Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perf-annotate(1) [centos man page]

PERF-ANNOTATE(1)						    perf Manual 						  PERF-ANNOTATE(1)

NAME
perf-annotate - Read perf.data (created by perf record) and display annotated code SYNOPSIS
perf annotate [-i <file> | --input=file] [symbol_name] DESCRIPTION
This command reads the input file and displays an annotated version of the code. If the object file has debug symbols then the source code will be displayed alongside assembly code. If there is no debug info in the object, then annotated assembly is displayed. OPTIONS
-i, --input= Input file name. (default: perf.data unless stdin is a fifo) -d, --dsos=<dso[,dso...]> Only consider symbols in these dsos. -s, --symbol=<symbol> Symbol to annotate. -f, --force Don't complain, do it. -v, --verbose Be more verbose. (Show symbol address, etc) -D, --dump-raw-trace Dump raw trace in ASCII. -k, --vmlinux=<file> vmlinux pathname. -m, --modules Load module symbols. WARNING: use only with -k and LIVE kernel. -l, --print-line Print matching source lines (may be slow). -P, --full-paths Don't shorten the displayed pathnames. --stdio Use the stdio interface. --tui Use the TUI interface. Use of --tui requires a tty, if one is not present, as when piping to other commands, the stdio interface is used. This interfaces starts by centering on the line with more samples, TAB/UNTAB cycles through the lines with more samples. --gtk Use the GTK interface. -C, --cpu Only report samples for the list of CPUs provided. Multiple CPUs can be provided as a comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2. Default is to report samples on all CPUs. --asm-raw Show raw instruction encoding of assembly instructions. --source Interleave source code with assembly code. Enabled by default, disable with --no-source. --symfs=<directory> Look for files with symbols relative to this directory. -M, --disassembler-style= Set disassembler style for objdump. --objdump=<path> Path to objdump binary. --skip-missing Skip symbols that cannot be annotated. --group Show event group information together SEE ALSO
perf-record(1), perf-report(1) perf 06/30/2014 PERF-ANNOTATE(1)

Check Out this Related Man Page

OPANNOTATE(1)						      General Commands Manual						     OPANNOTATE(1)

NAME
opannotate - produce source or assembly annotated with profile data SYNOPSIS
opannotate [ options ] [profile specification] DESCRIPTION
opannotate outputs annotated source and/or assembly from profile data of an OProfile session. See oprofile(1) for how to write profile specifications. OPTIONS
--assembly / -a Output annotated assembly. The binary file to be annotated does not need full debugging information to use this option, but symbol information is required. Without symbol information, opannotate will silently refuse to annotate the binary. If this option is com- bined with --source, then mixed source / assembly annotations are output. --demangle / -D none|smart|normal none: no demangling. normal: use default demangler (default) smart: use pattern-matching to make C++ symbol demangling more read- able. --exclude-dependent / -x Do not include application-specific images for libraries, kernel modules and the kernel. This option only makes sense if the profile session used --separate. --exclude-file [files] Exclude all files in the given comma-separated list of glob patterns. --exclude-symbols / -e [symbols] Exclude all the symbols in the given comma-separated list. --help / -? / --usage Show help message. --image-path / -p [paths] Comma-separated list of additional paths to search for binaries. This is needed to find modules in kernels 2.6 and upwards. --root / -R [path] A path to a filesystem to search for additional binaries. --include-file [files] Only include files in the given comma-separated list of glob patterns. --merge / -m [lib,cpu,tid,tgid,unitmask,all] Merge any profiles separated in a --separate session. --include-symbols / -i [symbols] Only include symbols in the given comma-separated list. --objdump-params [params] Pass the given parameters as extra values when calling objdump. If more than one option is to be passed to objdump, the parameters must be enclosed in a quoted string. An example of where this option is useful is when your toolchain does not automatically recognize instructions that are specific to your processor. For example, on IBM POWER7/RHEL 6, objdump must be told that a binary file may have POWER7-specific instructions. The opannotate option to show the POWER7-specific instructions is: --objdump-params=-Mpower7 The opannotate option to show the POWER7-specific instructions, the source code (--source) and the line numbers (-l) would be: --objdump-params="-Mpower7 -l --source" --output-dir / -o [dir] Output directory. This makes opannotate output one annotated file for each source file. This option can't be used in conjunction with --assembly. --search-dirs / -d [paths] Comma-separated list of paths to search for source files. You may need to use this option when the debug information for an image contains relative paths. --base-dirs / -b [paths] Comma-separated list of paths to strip from debug source files, prior to looking for them in --search-dirs. --session-dir=dir_path Use sample database from the specified directory dir_path instead of the default locations. If --session-dir is not specified, then opannotate will search for samples in <current_dir>/oprofile_data first. If that directory does not exist, the standard session-dir of /var/lib/oprofile is used. --source / -s Output annotated source. This requires debugging information to be available for the binaries. --threshold / -t [percentage] Only output data for symbols that have more than the given percentage of total samples. --verbose / -V [options] Give verbose debugging output. --version / -v Show version. ENVIRONMENT
No special environment variables are recognised by opannotate. FILES
<current_dir>/oprofile_data/samples Or /var/lib/oprofile/samples/ The location of the generated sample files. VERSION
This man page is current for oprofile-0.9.9. SEE ALSO
/usr/share/doc/oprofile/, oprofile(1) 4th Berkeley Distribution Tue 10 June 2014 OPANNOTATE(1)
Man Page