Chapter 39. OProfile
536
Command
Description
opimport
Converts sample database files from a foreign binary format to the
native format for the system. Only use this option when analyzing a
sample database from a different architecture.
opannotate
Creates annotated source for an executable if the application was
compiled with debugging symbols. Refer to
Section 39.5.4, “Using
opannotate
”
for details.
opcontrol
Configures what data is collected. Refer to
Section 39.2, “Configuring
OProfile”
for details.
opreport
Retrieves profile data. Refer to
Section 39.5.1, “Using
opreport
”
for
details.
oprofiled
Runs as a daemon to periodically write sample data to disk.
Table 39.1. OProfile Commands
39.2. Configuring OProfile
Before OProfile can be run, it must be configured. At a minimum, selecting to monitor the kernel
(or selecting not to monitor the kernel) is required. The following sections describe how to use the
opcontrol
utility to configure OProfile. As the
opcontrol
commands are executed, the setup
options are saved to the
/root/.oprofile/daemonrc
file.
39.2.1. Specifying the Kernel
First, configure whether OProfile should monitor the kernel. This is the only configuration option that is
required before starting OProfile. All others are optional.
To monitor the kernel, execute the following command as root:
opcontrol --setup --vmlinux=/usr/lib/debug/lib/modules/`uname -r`/vmlinux
Note
The
debuginfo
package must be installed (which contains the uncompressed kernel) in
order to monitor the kernel.
To configure OProfile not to monitor the kernel, execute the following command as root:
opcontrol --setup --no-vmlinux
This command also loads the
oprofile
kernel module, if it is not already loaded, and creates the
/
dev/oprofile/
directory, if it does not already exist. Refer to
Section 39.6, “Understanding
/dev/
oprofile/
”
for details about this directory.
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...