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
2
votes
1 answer
OProfile failed to generate callgraph
I'm trying to generate a callgraph using oprofile and for some reason it fails.
I'm using the below command to config it:
opcontrol --shutdown
opcontrol --reset
opcontrol --no-vmlinux
opcontrol --separate=library
opcontrol --event=default
opcontrol…

Roi
- 31
- 3
2
votes
0 answers
oprofile unable to produce callgraph on ARM
This is actually an exact duplicate of this SO question which unfortunately does not have any answer. Is it possible to get a proper callgraph on ARM? I'm using oprofile 0.9.6 on an ARM926 which does not have performance counters so oprofile…

celavek
- 5,575
- 6
- 41
- 69
2
votes
0 answers
oprofile - using ocount / operf - LLC miss issue 100%
Host: ubuntu 15.04
oprofile version: 1.1.0
CPU: Intel XEON D-1520
1.
./ocount --events=INST_RETIRED,LLC_MISSES,LLC_REFS ./test
The result is:
Event Count % time counted
INST_RETIRED 1,847,242,162 …

Sam
- 4,521
- 13
- 46
- 81
2
votes
1 answer
Oprofile - using operf to show INST_RETIRED and l1d_replacement events in opreport
Host: Ubuntu 14.04
Opef version: 0.9.9
I would like to have two events shown in opreport so that I enter the following command to run operf:
operf ./l1thrash -e l1d_replacement:10000 -e INST_RETIRED:10000 --separate=cpu
After some seconds, the…

Sam
- 4,521
- 13
- 46
- 81
2
votes
1 answer
What type of POWER8 PMU events should be maximized?
I perform a performance analysis of an application running on IBM POWER8 server following the CPI breakdown model for POWER8.
I understand that I need to reduce the percentage of stalls caused, for example, by cache misses…

Alexander Pozdneev
- 1,289
- 1
- 13
- 31
2
votes
1 answer
oprofile unable to produce call graph
I am trying to use oprofile to generate call graph.
Compiler is g++, platform is linux x86-64, linker is gfortran
C++ code is compiled with -fno- omit-frame-pointer.
oprofile is started with --callgraph=25.
report I run with --callgraph.
the call…

Anycorn
- 50,217
- 42
- 167
- 261
2
votes
0 answers
Visualize OProfile output with gprof2dot (incomplete output)
So I'm not sure what I'm doing wrong. I have a profile generated by oprofile. I converted this oprofile using the command below to a text file (looooots of lines in that txt file):
opreport -c --session-dir=dirNAME/oprofile_data/ >…

Mewa
- 502
- 1
- 9
- 24
2
votes
1 answer
Oprofile error on android devices. oprofiled: too many events passed
I use oprofile on my MDP. Android 4.3 userdebug version.
#opcontrol --setup
#oprofiled --vmlinux=/data/vmlinux --kernel-range=c00080ernel-range=c00080 --event=CPU_CYCLES
oprofiled: too many events passed.
# opcontrol --status
Driver directory:…

Jansen
- 133
- 12
2
votes
1 answer
Cycles consumed in each function through Oprofile
Oprofile works on Sampling Based theory.
Opreport -l option provides us the profiling report in the following way:
samples % image name symbol name
78149 15.0776 cvqa comp_corr.clone.2
With this…

Manish Kumar
- 1,419
- 3
- 17
- 36
2
votes
1 answer
Profiling output of JIT on Linux with perf_events/oprofile?
I want to profile code, generated by JIT on Linux, with using hardware performace counters. As I know, most common profilers are oprofile and perf.
How can I integrate JIT and oprofile/perf?
My JIT is not JAVA which is already supported in oprofile.…

osgx
- 90,338
- 53
- 357
- 513
2
votes
0 answers
difference between ftrace function statistics and oprofile
May anyone please compare ftrace statistics and oprofile?
We observed the following phenomenons:
with oprofile enabled during the network performance test, we see little impact to the performance test (compare to the case where oprofile is not…

Dien Nguyen
- 2,019
- 6
- 30
- 37
1
vote
2 answers
Ubuntu 2.6.35 vmlinux image for kernel profiling using oprofile
HI i want to run profiling on Kernel using Oprofile but it requires uncompressed vmlinux image and ubuntu 10.10 provides vmlinuz which is stripped and compressed. Pls help

user1173298
- 11
- 2
1
vote
1 answer
Tools to help profile cache misses
What tools does the community use to help identify if cache misses are even a problem, and if they are a problem where they are occuring in the code?
The first question is:
How do I identify how much time is being spent waiting for data from main…

joe2748
- 11
- 1
1
vote
3 answers
Using O-Profile with Linux RedHat OS => conflict with NMI watchdog
I was trying to run o-profile (a profiling program for linux) and kept getting an error while starting saying something like counter 0 was being use by 'NMI watchdog'. Is NMI part of the OS or is it a separate package that was downloaded? How would…

user972276
- 2,973
- 9
- 33
- 46
1
vote
1 answer
oprofile on a stripped binary
I am trying to find ways to use oprofile on a stripped binary yet
still get detailed information when symbol tables are available
later, but so far I haven't find any solution.
Here is my situation: Our software is shipped to our customer stripped,…

Junping
- 619
- 7
- 9