1 .TH OPROFILE 1 "Fri 12 September 2014" "oprofile 1.0.0"
4 oprofile \- a system-wide profiler
11 [ profile specification ]
17 [ profile specification ]
23 [ profile specification ]
29 [ profile specification ]
32 OProfile is a profiling system for systems running Linux
33 2.6 and greater. Profiling runs transparently in the background and profile
34 data can be collected at any time. OProfile makes use of the hardware
35 performance counters provided on Intel, AMD, and other processors,
36 and uses a timer-interrupt based mechanism on CPUs without counters.
37 OProfile can profile the whole system in high detail.
39 For a gentle guide to using OProfile, please read the HTML documentation
45 gives image and symbol-based profile summaries for the whole system or
46 a subset of binary images.
49 can produce annotated source or mixed source and assembly output.
52 produces oprofile archive for offline analysis
55 can produce a gprof-format profile for a single binary.
57 .SH PROFILE SPECIFICATIONS
58 All of the post-profiling tools can take profile specifications,
59 which is some combination of the following parameters. Enclosing
60 part of a profile specification in curly braces { } can be used
61 for differential profiles with
65 be surrounded by whitespace.
69 Path to the archive to inspect, as generated by
73 .BI "session:"sessionlist
74 A comma-separated list of session names to resolve in. Absence of this
75 tag, unlike all others, means "the current session", equivalent to
76 specifying "session:current".
79 .BI "session-exclude:"sessionlist
80 A comma-separated list of sessions to exclude.
84 A comma-separated list of image names to resolve. Each entry may be relative
85 path, glob-style name, or full path, e.g.
86 opreport 'image:/usr/bin/oprofiled,*op*,./oprofpp'
89 .BI "image-exclude:"imagelist
90 Same as image:, but the matching images are excluded.
93 .BI "lib-image:"imagelist
94 Same as image:, but only for images that are for
95 a particular primary binary image (namely, an application). This only
96 makes sense to use if you're using --separate.
97 This includes kernel modules and the kernel when using
101 .BI "lib-image-exclude:"imagelist
102 Same as <option>lib-image:</option>, but the matching images
106 .BI "event:"eventname
107 The symbolic event name to match on, e.g. event:DATA_MEM_REFS.
110 .BI "count:"eventcount
111 The event count to match on, e.g. event:DATA_MEM_REFS count:30000.
114 .BI "unit-mask:"maskvalue
115 The unit mask value of the event to match on, e.g. unit-mask:1.
119 Only consider profiles for the given numbered CPU (starting from zero).
120 This is only useful when using CPU profile separation.
124 Only consider profiles for the given task groups. Unless some program is
125 using threads, the task group ID of a process is the same as its process
126 ID. This option corresponds to the POSIX notion of a thread group. This
127 is only useful when using per-process profile separation.
131 Only consider profiles for the given threads. When using recent thread
132 libraries, all threads in a process share the same task group ID, but
133 have different thread IDs. You can use this option in combination with
134 tgid: to restrict the results to particular threads within a process.
135 This is only useful when using per-process profile separation.
138 No special environment variables are recognized by oprofile.
142 .I /usr/local/share/doc/oprofile/oprofile.html
145 .I /usr/local/share/doc/oprofile/opreport.xsd
146 Schema file for opreport XML output.
148 .I /usr/local/share/doc/oprofile/ophelp.xsd
149 Schema file for ophelp XML output.
151 .I /usr/local/share/oprofile/
152 Event description files used by OProfile.
154 .I <session-dir>/samples/operf.log
155 The profiler log file.
157 .I <session-dir>/samples/current
158 The location of the generated sample files.
162 This man page is current for oprofile-1.0.0.
165 .BR /usr/local/share/doc/oprofile/,
171 .BR "CPU vendor architecture manuals"
174 oprofile is Copyright (C) 1998-2004 University of Manchester, UK, John Levon,
176 OProfile is released under the GNU General Public License, Version 2,
177 or (at your option) any later version.
179 John Levon <levon@movementarian.org> is the primary author. See the documentation
180 for other contributors.