From: "John Levon" <levon@...>
Sent: Thursday, March 14, 2002 2:32 PM
> On Wed, Mar 13, 2002 at 08:44:08PM -0800, Osiris Pedroso wrote:
> > 1) How can I convert a vmlinuz to a vmlinux (decompress it?) ? This is
> > required for the op_start command.
> You really need the vmlinux from your build. Though if you're not doing
> kernel profiling you can use any file you like ...
and, if you have not make clean or make mrproper after building your kernel,
it must be in /usr/src/linux-2.4/
I'm unsure than with RH 7.2 you have qt2 installed and so on you can't use
oprof_start rather op_start...
> > 2) when insmod oprofile.o, it fails with "init_module: Device or
> > resource busy"
> well it's in RTC mode, so you need to compile out the RTC driver from
> your kernel.
John, we need something like in op_rtc.c
#ifndef CONFIG_RTC /* is it the right identifier ? */
printk("No RTC ...");
Osiris, I details a litlle what more a previous John's mail about what to
1) change the op_cpu enum adding a CPU_P4
2) change op_init::get_cpu_type() to return CPU_P4 when detecting a P4
3) look where and how OP_MAX_COUNTERS is defined, change the
definition to allow at least the 18 P4 counters.
4) write an module/op_p4.c which must the counter part of op_nmi.c
and fill an op_int_operations with empty place holder function.
5) change oprofile.c::oprof_init() to handle CPU_P4
So at this point you must get a non-working P4 module skeleton then post
it here. After that I think you must get a more precise idea on how the
module work and what work is needed.
Most of the functionnality for P4 are identical than for P2/Athlon but
IMHO it's preferable, for now, to cut and copy code from op_nmi.c to
If you find this information too or not enough detailed, just flame me.