OProfile is a profiling system for systems running Linux 2.2, 2.4, and 2.6. Profiling runs transparently in the background and profile data can be collected at any time. OProfile makes use of the hardware performance counters provided on Intel, AMD, and other processors, and uses a timer-interrupt based mechanism on CPUs without counters. OProfile can profile the whole system in high detail.
Questions tagged [oprofile]
78 questions
1
vote
1 answer
How to use oprofile to calculate execution time of a part of C program?
I want to profile a portion of the C code (user_defined_function())using oprofile and calculate the time taken to execute it. Any pointers on how to do this would be very helpful. Thanks in advance!!
#include
int main()
{
//some…

Vipin
- 13
- 1
- 6
1
vote
1 answer
oprofile can not use hardware performance counters
I have debian 5.0 linux server on an IBM HS22 blade with 2 Xeon E5504 processors. I found out that oprofile could not recognize hardware performance counters on this setup, only timer interrupt is available:
# opcontrol -l
Using timer interrupt.
#…

Long Cheng
- 388
- 2
- 10
1
vote
1 answer
Error compiling oprofile for arm
I am cross compiling oprofile for arm.
$ export CC=arm-linux-gnueabi-gcc
$ export CXX=arm-linux-gnueabi-g++
$ export CXXCPP='arm-linux-gnueabi-g++ -E'
$ export CPP='arm-linux-gnueabi-gcc -E'
I get the following error (see the last line)
checking…

Ankur Agarwal
- 23,692
- 41
- 137
- 208
1
vote
1 answer
What is the difference between PM_DATA_ALL* and PM_DATA* events on Power8?
During evaluation of memory performance of Power8 processor using perf I ended up with problem of understanding difference between events PM_DATA_ALL_* and PM_DATA_*. Most of the counters exists in both version, but the description in oprofile…

Jakuje
- 24,773
- 12
- 69
- 75
1
vote
1 answer
Basic doubt in Oprofile
I am trying to profile my software (in Linux) with oprofile. My software consists of both userspace and kernel module. First my doubt is what does the --separate=kernel option do? What will be the difference when running without that option? I did…

bala1486
- 1,039
- 2
- 14
- 19
1
vote
0 answers
How to exclude boost, ace, stl when using oprofile?
When I use oprofile tool for performance analysis, the result include many stats of stl function, ACE function and boost function, how can i exclude these libraries when use oprofile for statistics?
This is my result:
samples cum. samples % …

guozengxin
- 19
- 1
1
vote
3 answers
Measuring execution time of selected loops
I want to measure the running times of selected loops in a C program so as to see what percentage of the total time for executing the program (on linux) is spent in these loops. I should be able to specify the loops for which the performance should…

Arjun Singri
- 605
- 1
- 8
- 17
1
vote
1 answer
oprofile: what does "[vectors] (tgid:20712 range:0xffff0000-0xffff1000)" mean?
I profile my application using oprofile on an ARM Cortex-A8 and I notice a lot of samples with image name "[vectors] (tgid:20712 range:0xffff0000-0xffff1000)"
oprofile reports that this is responsible for 17% of my process time so hopefully someone…

Robert Smith
- 77
- 6
1
vote
1 answer
Clearer labelling from oprofile
I'm using the ocount tool from the oprofile suite to count three different HW performance counters:
ocount --events=rtm_retired:commit,rtm_retired:start,rtm_retired:aborted programA
The problem is that because the three counters share a prefix,…

Matthew G.
- 1,298
- 10
- 24
1
vote
1 answer
Running Oprofile with MPI
I'm having issues using Oprofile to profile a parallel program that I call via mpirun. The command I'd like to use is:
$ operf mpirun -n 4 [program and arguments]
Unfortunately, when I do this, operf starts logging, but something funny happens…

user1476176
- 1,045
- 1
- 7
- 15
1
vote
1 answer
Opreport does not show results
According to http://lbrandy.com/blog/2008/11/oprofile-profiling-in-linux-for-fun-and-profit/ tutorial, I'm trying to see the results of oprofile using the command:
.opreport
and I also tried:
.opreport -lt1
and what I get is only this:
Using…

user1123432
- 368
- 3
- 8
1
vote
1 answer
Oprofile and gprof output varies for same code
I am running my code AMD optron 6270 machine. OS is Centos 6.2 release.
I have made a simple program as
#include
#include
int calling (long a);
int calling1 (long a);
int calling2 (long a);
int calling3 (long a);
int calling4…

Manish Kumar
- 1,419
- 3
- 17
- 36
1
vote
1 answer
Oprofile warning "could not check that the binary file"
We do profiling kernel modules with Oprofile and there is a warning in the opreport as follow
warning: could not check that the binary file /lib/modules/2.6.32-191.el6.x86_64/kernel/fs/ext4/ext4.ko has not been modified since the profile was taken.…

Dien Nguyen
- 2,019
- 6
- 30
- 37
1
vote
3 answers
What is the difference between profilers that need recompiling and those that do not?
What are the differences between using profilers that need to recompile the source code with debugging options(like gprof) and profilers that do not need recompiling(like Valgrind, OProfile, ...)?

Maryam Saeidi
- 1,463
- 2
- 21
- 33
0
votes
1 answer
Setup OProfile on proprietary kernel
I'm trying to set up OProfile on our proprietary kernel with no success.
The kernel is based on: 2.6.34.8 running on mips74k CPU.
Is it possible to do so?
If so, I would really appreciate any guide that explains the step I should take.
Thanks

embedded
- 717
- 4
- 11
- 25