[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] /dev/cpu/{cpuid,msr} missing
From:       Alkis Evlogimenos <alkis () evlogimenos ! com>
Date:       2004-01-29 1:47:50
Message-ID: 200401281947.50767.alkis () evlogimenos ! com
[Download RAW message or body]

On Wednesday 28 January 2004 07:21 am, Mike Frysinger wrote:
> On Wednesday 28 January 2004 08:10, Alkis Evlogimenos wrote:
> > I am running 2.6.2-rc1-mm3 and I have msr (CONFIG_X86_MSR) and cpuid
> > (CONFIG_X86_CPUID) compiled in the kernel. Yet I get no /dev/cpu/0/msr
> > or /dev/cpu/0/cpuid. My cpu is an Athlon XP 2400+.
> >
> > Any ideas on what I am doing wrong?
>
> you using devfs or udev ?

Apparently msr and cpuid are not devfs friendly. So I added the following in 
my rc.local to add the devices on boot:

for i in 0 1 2 3; do
    mkdir -p /dev/cpu/$i
    mknod -m 444 /dev/cpu/$i/msr   c 202 $i
    mknod -m 444 /dev/cpu/$i/cpuid c 203 $i
done

Now I can use oprofile with hardware counters :-)

-- 

Alkis

--
gentoo-dev@gentoo.org mailing list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic