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
--
[EMAIL PROTECTED] mailing list