This is release 0.1 of p5profile (Pentium Profiler).
Written by Stephan Meyer <Stephan.Meyer@munich.netsurf.de>
homepage: http://fatman.mathematik.tu-muenchen.de/~meyer/

This program uses the special Pentium counter registers hidden in the
Machine Specific Registers to chart graphs of interesting events that
happen inside the CPU.

If you know assembler on the x86 architecture, you probably know what I'm
talking about. A nice thing to do, for example, is watching the I/O
read/write cycles go jumping while doing a "hdparm -t /dev/hda".

Please send me feedback and bugreports!

LICENSE:
This program is placed by me under the GPL license.

REQUIREMENTS:
One of the recent Linux kernels which was compiled with the MSR patch.
This patch is included in this release and provides for easy access to
those Machine Specific Registers.

You also need to have the Qt GUI library installed on your system.
You can get it from "www.troll.no".

To apply the patch, go to the kernel source directory and type:
"patch < /whereeveritis/msr-diff-2.0.29.patch"
This file should patch cleanly to any kernel 2.0.>=29 and 2.1.>=28.
In the kernel config dialog, check "experimental drivers" and then
"Enable /dev/msr".
Recompile.
To create the device file "/dev/msr", you need to go to /dev and type:
"mknod msr c 10 142"

COMPILATION:
A binary is included, but still:

Type "make".

EXECUTION:)
Type "p5profile".

The scrollbar on the right lets you scale the graph in the vertical.
This is not totally clean yet.

In the Options dialog:

You may set the sample rate. Lower values mean faster.

You may set each counter to not count at all/count only in the kernel
(cpl!=3)/count only in user-level (cpl==3)/count everything.

REMINDER:
Please do send me feedback and bug-reports.

TRADEMARKS:
"Pentium" is a trademark of "Intel".
