I am trying to profile code on the VIA C7 processor . This is a x86
cpu with no hardware performance counters. I am using oprofile 0.9.7
and kernel 3.0.4. I am setting oprofile as follows:
# opcontrol --init
# dmesg | tail -n 1
[23369.717989] oprofile: using NMI timer interrupt.
# opcontrol --no-vmlinux --callgraph 6 --separate=lib
# opcontrol --status
Daemon not running
Separate options: library
vmlinux file: none
Image filter: none
Call-graph depth: 6
# opcontrol --list-events
Using timer interrupt.
# opcontrol --start
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/samples/oprofiled.log
Here I run my application, for over 30 seconds just to be sure. Tried
running some system binaries to the same effect.
# opcontrol --stop
# opcontrol --dump
error: no sample files found: profile specification too strict ?
oprofiled.log seems to indicate that no samples were recorded .
I have followed the documentation closely and yet it seems that
something is amiss. I'd be grateful for suggestions how to make it
 /proc/cpuinfo: http://pastebin.com/ci5C2bMu
 oprofiled.log (example): http://pastebin.com/wxNWmMA1
From: Robert Richter <robert.richter@am...> - 2011-11-01 13:57:26
On 31.10.11 18:52:14, JM wrote:
> I am trying to profile code on the VIA C7 processor . This is a x86
> cpu with no hardware performance counters. I am using oprofile 0.9.7
> and kernel 3.0.4. I am setting oprofile as follows:
Since the rework of the NMI watchdog that bases now on perf, nmi timer
mode is brokten on x86. I posted a reimplementation for 3.3, see:
This is untested for via cpus, please give it a try.
Alternatively you can try hr timer mode using oprofile.timer=1 kernel
Advanced Micro Devices, Inc.
Operating System Research Center