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
15
votes
1 answer
Is oprofile still alive and well?
Is the oprofile project still alive and well?
I know it is still supported in the default linux kernel and that the user space utilities works (at least on the Arch linux I'm running), but the majority of the documentation for it seems to be…

Dirk
- 1,184
- 6
- 22
12
votes
5 answers
Linux time sample based profiler
short version:
Is there a good time based sampling profiler for Linux?
long version:
I generally use OProfile to optimize my applications. I recently found a shortcoming that has me wondering.
The problem was a tight loop, spawning c++filt to…

deft_code
- 57,255
- 29
- 141
- 224
9
votes
2 answers
What is the best way to get the most useful output from oprofile?
Using tools such as:
opreport
opcontrol
opannotate
I am starting to use this tool and trying to find the best combinations, examples to get
the most out of profiling.
Thanks

vehomzzz
- 42,832
- 72
- 186
- 216
7
votes
4 answers
Is there any similar tool for Linux that works like Shark on Mac OS X?
Shark on Mac OS X is a great tool for profiling an application on a running system. Is there any similar tools for Linux?
OProfile looks like it could be, anyone used it?

epatel
- 45,805
- 17
- 110
- 144
7
votes
1 answer
How to get a callstack from oprofile output?
I'm so confused. I don't know if oprofile can even provide a stack trace from a profiling report. I've been reviewing the oprofile manual and it only refers to stacktraces by saying that they can be logged, but it doesn't give an example for how…

bitcycle
- 7,632
- 16
- 70
- 121
6
votes
1 answer
oprofile binary build error - (liberty library not found)
After download the oprofile source code on my host ( Ubuntu 15.04 ),
for some reasons, I need to build the binary my own.
I enter the following command to build the binary
./configure && make && make install
And got the error message
configure:…

Sam
- 4,521
- 13
- 46
- 81
5
votes
1 answer
Monitoring context switches in Linux
Is there any way to determine whenever a context switch takes place without the use of profilers? I have written a C program to monitor the time taken for different processes in a program to finish execution. I want to show the process/thread…

Sathya
- 525
- 1
- 8
- 15
5
votes
2 answers
How am I supposed to interpret OProfile output?
I tried profiling my application with OProfile recently. The data gathered is already very valuable to me, but I'm having difficulties with its precise interpretation. After running my app with oprofile set up and running, I generated the report and…

neuviemeporte
- 6,310
- 10
- 49
- 78
5
votes
1 answer
"bfd library not found" error when configuring Oprofile
I downloaded oprofile zip and then extracted it. Then using the command
./configure --prefix=/home/eranga/Software/oprofile-1.1.0
I tried to install it. Below are the last console messages.
checking for bfd_openr in -lbfd... no
checking for…

Eranga Heshan
- 5,133
- 4
- 25
- 48
5
votes
2 answers
OPROFILE can't get performance data
I am using OPROFILE to collect some performance data.
but I got in troubule.
Here is my shell:
~ # rm -f /root/.oprofile/daemonrc
~ # opcontrol --setup --no-vmlinux
~ # opcontrol --init
~ # opcontrol --reset
~ # opcontrol --start
~ # opcontrol…

Terry
- 217
- 1
- 2
- 8
4
votes
1 answer
What does the OProfile warning 'dropping hyperspace sample' mean?
When using the statistical execution profiler OProfile to visualise a callgraph profile for my C application, it includes the following warning multiple times. The warning is rather cryptic to me:
warning: dropping hyperspace sample at offset 1af9…

Joseph Tanenbaum
- 2,211
- 15
- 30
4
votes
1 answer
How to get call graph profiling working with gcc compiled code and ARM Cortex A8 target?
I am biting my teeth out on this one...
I need to do profiling on an ARM board and need to view call graphs. I tried with OProfile, Kernel perf and Google performance tools. All work fine but do not output any call-graph information.
This led me to…

Hannah S.
- 3,081
- 3
- 20
- 27
4
votes
1 answer
How can I get OProfile / Xenoprof to use event counters when running on EC2?
I'm writing a cluster-wide profiling tool for EC2 that is designed to collect data by running OProfile on each instance. I'd eventually like to aggregate the XML output generated by opreport, and analyze it later.
Right now, I'm stuck on getting…

mrdmnd
- 91
- 1
- 8
4
votes
1 answer
Optimizing a slow loop
The code looks like this and the inner loop takes a huge amount of time:
#define _table_derive ((double*)(Buffer_temp + offset))
#define Table_derive(m,nbol,pos) _table_derive[(m) + 5*((pos) + _interval_derive_dIdQ *…

dargaud
- 2,431
- 2
- 26
- 39
4
votes
1 answer
What is concidered a good cache hit/miss ratio?
I am running ocount on our program to count L2 cache read events, and we have these result:
Event Count % time
counted
l2_rqsts:all_demand_data_rd 14,418,959,276 …

rvlander
- 91
- 2
- 7