Howto use /dev/cpu/%d/msr

Howto use /dev/cpu/%d/msr

Post by Mathias Waac » Wed, 13 Mar 2002 18:32:04



Hi all,

I'm trying to find out how to use the /dev/cpu/%d/msr devices to monitor
the performance of an application. Could someone post a small example? I'm
especially interesting in finding out how many instructions are executed in
a function call.

Mathias

 
 
 

1. DevFS support for /dev/cpu/X/(cpuid|msr)

First comment: please send the patch inline, not MIME-encoded.

Second comment: devfs_(un)register_per_cpu() doesn't belong in
fs/devfs/base.c. I don't even think it should be in fs/devfs/util.c.
I think it belongs kernel/smp.c (that's right, create a new file).
There's too much duplicated SMP code in each arch/ tree. Let's create
a place for new stuff to be shared.

So, please send along your next version of the patch (inlined, of
course:-).

                                Regards,

                                        Richard....


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Help with evergreen spectra 233

3. Check RAM

4. weird semantics of cpu/*/msr

5. PCI Sound CArd

6. CPU time used on 4 CPU's?

7. Accessing DOSEMU hdimage via mtools..

8. ppp-on: tty_io.c: process 200 (pppd) used obsolete /dev/cua1 - update software to use /dev/ttyS1 tty_io.c: process 267 (pppd) used obsolete /dev/cua1 update software to use /dev/ttyS1

9. What is the difference between /dev/sg0, /dev/scd0 /dev/hdd and /dev/cdrom ?

10. /dev/dsp, /dev/audio, /dev/midi., /dev/sndsta

11. Problems using Netfilter to NAT secondary IPs (ip addr add IP dev DEV)

12. Using /dev/audio and /dev/dsp