Questions tagged [oprofile]

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.

78 questions
4
votes
0 answers

Oprofile operf is not collecting any data

I am testing oprofile version 1.0.0 out on two almost identical machines. On one it works perfectly on the other it does not collect any data at all. Oprofile was downloaded as source and compiled and installed on each box - with same version of all…
Adrian Cornish
  • 23,227
  • 13
  • 61
  • 77
4
votes
2 answers

OProfile on android

Has anybody used OProfile tool on android...If you are able to profile please provide the basic steps and any other configuration or setup in order to do that... Regards, Bharat Pawar
Bharat Pawar
  • 1,867
  • 3
  • 18
  • 23
4
votes
1 answer

Oprofile Error: Failed to open profile device: Device or resource busy

I'm struggling to run oprofile on my system because of an annoying error: $ sudo opcontrol --setup --vmlinux=/usr/lib/debug/lib/modules/`uname -r`/vmlinux $ sudo opcontrol --start ATTENTION: Use of opcontrol is discouraged. Please see the man page…
jdmartin86
  • 299
  • 2
  • 16
4
votes
1 answer

Which profiler is more accurate: OProfile or Google Performance Tools?

I found two great profilers: OProfile Google Performance Tools Have anyone tried them both? Which is better?
Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208
3
votes
1 answer

LTTng vs. OProfile

I'm working on developing a set of tools for one of our embedded products (ARM Cortex-A8). Some of the tools I have looked at are LTTng, OProfile, and Valgrind. Can someone briefly described the differences between LTTng and OProfile? I'm trying to…
rkyser
  • 3,241
  • 1
  • 19
  • 28
3
votes
2 answers

Linux library for profiling

Is there a Linux library that can run performance profiling within a running process? I have a rather large linux program that is heavily script-based. Depending on the scripts, the program can have wildly different behaviors (and performance…
Andrew Klofas
  • 610
  • 1
  • 7
  • 19
3
votes
0 answers

No cache event samples for ARM beagleboard running Android

I am trying to collect some performance statistics on Beagleboard Rev C4, and Beagleboard xM. Oprofile runs perfectly when I set the profiling event to CPU_CYCLE, however on both boards, when I try to profile any cache related events, I get an…
hansioux
  • 229
  • 2
  • 9
3
votes
2 answers

What profiler should I use to measure _real_ time (including waiting for syscalls) spend in this function, not _CPU_ one

The application does not calculate things, but does i/o, read files, uses network. I want profiler to show it. I expect something like something like in callgrind that calls clock_gettime each proble. Or like oprofile that interrupts my application…
Vi.
  • 37,014
  • 18
  • 93
  • 148
3
votes
1 answer

How to find if debug information only contains relative paths or absolute paths?

How to find if debug information contains relative paths or absolute paths? I am trying to Outputting annotated source (opannotate) using the following link. http://oprofile.sourceforge.net/doc/opannotate.html I would like to know about it in order…
New to Rails
  • 2,824
  • 5
  • 27
  • 43
3
votes
2 answers

Oprofile callgraph: origin of syscalls

I have been using oprofile to try to discover why my program was spending so much time in the kernel. I now have the symbols from the kernel, but apparently no links between my program and kernel that'll tell me which bits of my program are taking…
Dijkstra
  • 2,490
  • 3
  • 21
  • 35
3
votes
0 answers

Can oprofile ignore calls to external functions and instead accumulate the time to the caller?

I'm currently calling oprofile with these parameters: operf --callgraph --vmlinux /usr/lib/debug/boot/vmlinux-$(uname -r) opreport -a -l As an example, the output is: CPU: Core 2, speed 2e+06 MHz (estimated) Counted…
Philipp Claßen
  • 41,306
  • 31
  • 146
  • 239
3
votes
2 answers

Multicore and OProfile

Is oprofile thread-aware/safe (meaning I can safely profile multithreaded apps), and if so, what is the difference with perf?
Dervin Thunk
  • 19,515
  • 28
  • 127
  • 217
3
votes
1 answer

Why does my program spent 85% of CPU cycles in _fini?

I had a little surprise after profiling my program with oprofile. The profile shows that my program spend 85% in _fini: CPU: Intel Core/i7, speed 1199 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit …
Baptiste Wicht
  • 7,472
  • 7
  • 45
  • 110
2
votes
1 answer

oprofile isn't sampling LLC_MISSES cache events

I'm trying to use oprofile to record cache misses in a large realtime app: $ sudo opcontrol --no-vmlinux --event=LLC_MISSES:100000 --session-dir=/var/tmp/oprofile -c=5 --start But when I look at the reports, it doesn't mention the cache misses. It…
Crashworks
  • 40,496
  • 12
  • 101
  • 170
2
votes
1 answer

Why cache misses happen more when more data is prefetched on ARM?

I'm using OProfile to profile the following function on a raspberry pi 3B+. (I'm using gcc version 10.2 on the raspberry (not doing cross-compilation) and the following flags for the compiler: -O1 -mfpu-neon -mneon-for-64bits. The generate assembly…
Da Teng
  • 551
  • 4
  • 21