You are not logged in.

#1 2011-02-04 20:16:35

brian
Member
Registered: 2009-08-03
Posts: 16

oprofile, "counter 0 not available"

% sudo opcontrol --start && opcontrol --vmlinux=/usr/src/linux-2.6.37-ARCH/vmlinux && opcontrol --start
Password: 
Using default event: CPU_CLK_UNHALTED:100000:0:1:1
Error: counter 0 not available%

Any idea what's preventing this from working?

Offline

#2 2011-02-04 21:33:13

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: oprofile, "counter 0 not available"

Possibly a result of shells treating that command like this:

$ (sudo opcontrol --start) && opcontrol --vmlinux=/usr/src/linux-2.6.37-ARCH/vmlinux && opcontrol --start

I.e., the sudo only affects one part of a list of commands.

Offline

#3 2011-02-04 22:53:14

brian
Member
Registered: 2009-08-03
Posts: 16

Re: oprofile, "counter 0 not available"

I'm sorry, I did mess up the command, and that made it unclear. I should have put sudos everywhere. But that isn't the issue. Even with proper sudos, I get the same stuff.

Offline

#4 2011-02-05 01:03:34

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: oprofile, "counter 0 not available"

Is the oprofile module loaded?

Offline

#5 2011-02-07 05:27:30

brian
Member
Registered: 2009-08-03
Posts: 16

Re: oprofile, "counter 0 not available"

Yes. Supposedly the message indicates something's missing from /dev/oprofile.

Offline

#6 2011-03-01 13:50:03

marco44
Member
Registered: 2010-12-11
Posts: 15

Re: oprofile, "counter 0 not available"

I've got the exact same problem. /dev/oprofile/0 does not exist.


It seems we are not alone on this one:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615964

Offline

#7 2011-03-01 18:07:19

marco44
Member
Registered: 2010-12-11
Posts: 15

Re: oprofile, "counter 0 not available"

Ok, I've tested with the kernel26-lts and oprofile works, without changing anything else. Should I file a bug report ?

Offline

Board footer

Powered by FluxBB