English Persian
Unable to open cpu_type file for reading
Make sure you have done opcontrol --init
cpu_type 'unset' is not valid
you should upgrade oprofile or force the use of timer mode
Understanding the /dev/oprofile/ directory
* `unit_mask` — Defines which unit masks are enabled for the counter.
Unit Masks
Unit masks for each event are listed with the [command]#ophelp# command. The values for each unit mask are listed in hexadecimal format. To specify more than one unit mask, the hexadecimal values must be combined using a bitwise _or_ operation.
Unless OProfile is properly configured, [command]#ophelp# fails with the following error message:
*Use of shared libraries* — Samples for code in shared libraries are not attributed to the particular application unless the [option]`--separate=library` option is used.
* `user` — If 0, samples are not collected for the counter event when the processor is in user-space; if 1, samples are collected even if the processor is in user-space.
Use the `Count` text field to set the sampling rate for the currently selected event as discussed in xref:OProfile.adoc#s3-oprofile-events-sampling[Sampling Rate].
Use these tools, along with the binaries profiled, to generate reports that can be further analyzed.
Use xref:OProfile.adoc#tb-oprofile-processors[OProfile Processors and Counters] to determine the number of events that can be monitored simultaneously for your CPU type. If the processor does not have supported performance monitoring hardware, the `timer` is used as the processor type.
Using [command]#opannotate#
Using [command]#operf# in System-wide Mode
Using [command]#opreport#
Using log file /var/lib/oprofile/oprofiled.log Daemon started. Profiler running.
Using operf
Using operf on Virtual Systems
Using opreport on a Single Executable
* `/usr/share/doc/oprofile/oprofile.html` — [citetitle]_OProfile Manual_
vma samples % symbol name 00a98640 12 100.000 __gconv_transform_utf8_internal 00a98640 1 8.3333 00a9868c 2 16.6667 00a9869a 1 8.3333 00a986c1 1 8.3333 00a98720 1 8.3333 00a98749 1 8.3333 00a98753 1 8.3333 00a98789 1 8.3333 00a98864 1 8.3333 00a98869 1 8.3333 00a98b08 1 8.3333