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 combined 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 readable. --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. This option is supported solely with the --source option. It can be used to filter out source files in the output using the following types of specifications: * filenames (basename -- i.e., no path) * filename glob specifications (all files whose base filename matches the given pattern) * directory segments (all source files located in the specified directory; e.g. "libio") * directory segment glob specifications (e.g., "libi*") --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. The same rules apply for this option as for the --exclude-file option. --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 location. 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] For annotated assembly, only output data for symbols that have more than the given percentage of total samples. For profiles using multiple events, if the threshold is reached for any event, then all sample data for the symbol is shown. For annotated source, only output data for source files that have more than the given percentage of total samples. For profiles using multiple events, if the threshold is reached for any event, then all sample data for the source file is shown. --verbose / -V [options] Give verbose debugging output. --version / -v Show version.
ENVIRONMENT
No special environment variables are recognised by opannotate.
FILES
<session_dir>/samples The location of the generated sample files.
VERSION
This man page is current for oprofile-1.1.0.
SEE ALSO
/usr/share/doc/oprofile/, oprofile(1)
More Linux Commands
manpages/XtAppGetErrorDatabase.3.html
XtAppGetErrorDatabase(3) - obtain error database (Man Page)
The XtAppGetErrorDatabase function returns the address of the error database. The Intrinsics do a lazy binding of the error database and do not merge in the dat
manpages/fmaxf.3.html
fmaxf(3) - determine maximum of two floating-point numbers
These functions return the larger value of x and y. RETURN VALUE These functions return the maximum of x and y. If one argument is a NaN, the other argument is
manpages/XF86VidModeGetGammaRampSize.3.html
XF86VidModeGetGammaRampSize(3) - Extension library for the X
These functions provide an interface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mo
manpages/XeviQueryExtension.3.html
XeviQueryExtension(3) - X Extended Visual Information functi
The X11 Extended Visual Information extension (EVI) allows a client to determine information about core X visuals beyond what the core protocol provides. The EV
manpages/nice.1.html
nice(1) - run a program with modified scheduling priority...
Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Niceness values range from -20 (most favor
manpages/Tk_GetAnchorFromObj.3.html
Tk_GetAnchorFromObj(3) - translate between strings and ancho
Tk_GetAnchorFromObj places in *anchorPtr an anchor position (enumerated type Tk_Anchor) corresponding to objPtrs value. The result will be one of TK_ANCHOR_N, T
manpages/pattern.3menu.html
pattern(3menu) - get and set a menu's pattern buffer........
Every menu has an associated pattern match buffer. As input events that are printable characters come in, they are appended to this match buffer and tested for
manpages/podofogc.1.html
podofogc(1) Garbage collection in a PDF file. (Man Page)....
podofogc is one of the command line tools from the PoDoFo library that provide several useful operations to work with PDF files. It can perform a garbage collec
manpages/XmbufGetBufferAttributes.3.html
XmbufGetBufferAttributes(3) - X multibuffering functions....
The application programming library for the X11 Double-Buffering, Multi-Buffering, and Stereo Extension contains the interfaces described below. With the except
manpages/postlog.1.html
postlog(1) - Postfix-compatible logging utility (Man Page)
The postlog(1) command implements a Postfix-compatible logging interface for use in, for example, shell scripts. By default, postlog(1) logs the text given on t
manpages/tcpdchk.8.html
tcpdchk(8) - tcp wrapper configuration checker (Man Page)...
tcpdchk examines your tcp wrapper configuration and reports all potential and real problems it can find. The program examines the tcpd access control files (by
manpages/asn1_octet_der.3.html
asn1_octet_der(3) - API function (Library - Linux man page)
Creates a length-value DER encoding for the input data. The DER encoding of the input data will be placed in the der variable. Note that the OCTET STRING tag is
