Gentoo Archives: gentoo-dev

From: Alkis Evlogimenos <alkis@×××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] /dev/cpu/{cpuid,msr} missing
Date: Thu, 29 Jan 2004 01:47:59
Message-Id: 200401281947.50767.alkis@evlogimenos.com
In Reply to: Re: [gentoo-dev] /dev/cpu/{cpuid,msr} missing by Mike Frysinger
1 On Wednesday 28 January 2004 07:21 am, Mike Frysinger wrote:
2 > On Wednesday 28 January 2004 08:10, Alkis Evlogimenos wrote:
3 > > I am running 2.6.2-rc1-mm3 and I have msr (CONFIG_X86_MSR) and cpuid
4 > > (CONFIG_X86_CPUID) compiled in the kernel. Yet I get no /dev/cpu/0/msr
5 > > or /dev/cpu/0/cpuid. My cpu is an Athlon XP 2400+.
6 > >
7 > > Any ideas on what I am doing wrong?
8 >
9 > you using devfs or udev ?
10
11 Apparently msr and cpuid are not devfs friendly. So I added the following in
12 my rc.local to add the devices on boot:
13
14 for i in 0 1 2 3; do
15 mkdir -p /dev/cpu/$i
16 mknod -m 444 /dev/cpu/$i/msr c 202 $i
17 mknod -m 444 /dev/cpu/$i/cpuid c 203 $i
18 done
19
20 Now I can use oprofile with hardware counters :-)
21
22 --
23
24 Alkis
25
26 --
27 gentoo-dev@g.o mailing list