The translation is temporarily closed for contributions due to maintenance, please come back later.
English Portuguese (Brazil)
Profiling through timer interrupt
samples| %|
25926 97.5212 no-vmlinux 359 1.3504 pi 65 0.2445 Xorg 62 0.2332 56 0.2106 34 0.1279 19 0.0715 17 0.0639 bash 8 0.0301 8 0.0301 6 0.0226 5 0.0188 oprofiled 4 0.0150 4 0.0150 3 0.0113 3 0.0113 du 1 0.0038 1 0.0038 1 0.0038 1 0.0038 1 0.0038 1 0.0038
Additional Resources
A directory exists in `/dev/oprofile/` for each counter. For example, if there are 2 counters, the directories `/dev/oprofile/0/` and `/dev/oprofile/1/` exist.
After changing any of the options, save them by clicking the btn:[Save and quit] button. The preferences are written to `/root/.oprofile/daemonrc`, and the application exits. Exiting the application does not stop OProfile from sampling.
After successful setup, you can apply the standard profiling and analyzing tools described in previous sections
Analyzing the Data
Back up the executable and the sample files
Be aware of the following limitations when using OProfile:
Be extremely careful when setting sampling rates. Sampling too frequently can overload the system, causing the system to appear frozen or causing the system to actually freeze.
Before OProfile can be run in legacy mode, it must be configured as shown in xref:OProfile.adoc#s1-oprofile-configuring[Configuring OProfile Using Legacy Mode]. These settings are then applied when starting OProfile (xref:OProfile.adoc#s1-oprofile-starting[Starting and Stopping OProfile Using Legacy Mode]).
.Online Documentation
By default, [command]#operf# stores the profiling data in the `pass:attributes[{blank}]_current_dir_pass:attributes[{blank}]/oprofile_data/` directory. You can change to a different location with the [option]`--session-dir` option. The usual post-profiling analysis tools such as [command]#opreport# and [command]#opannotate# can be used to generate profile reports. These tools search for samples in `pass:attributes[{blank}]_current_dir_pass:attributes[{blank}]/oprofile_data/` first. If this directory does not exist, the analysis tools use the standard session directory of `/var/lib/oprofile/`. Statistics, such as total samples received and lost samples, are written to the `pass:attributes[{blank}]_session_dir_pass:attributes[{blank}]/samples/operf.log` file.
~]# cat /dev/oprofile/0/count
~]# cat /dev/oprofile/cpu_type
Categorization of Samples
[command]#all# — Generate per-application profiles for libraries and per-application profiles for the kernel and kernel modules.