Hi

 

I am having a Fedora core 3, 2.6.9 kernel on which I am trying to provide gcov kernel support.

 

After downloading the appropriate patch from sourceforge.net , I patched the kernel from source directory like

 

This

 

$ patch –p1 < gcov-2.6.9.patch

 

then when I do make menuconfig, I can see the gcov support filed in the config file, I enabled required fileds.

 

But when I do make , after coming to gcov module it throws many warnings for undefined  functions etc and

 

Make is aborted at the following warning

 

make

  CHK     include/linux/version.h

make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.

  CHK     include/asm-i386/asm_offsets.h

  CHK     include/linux/compile.h

  CC      drivers/gcov/gcov-core.o

  LD      drivers/gcov/built-in.o

  LD      drivers/built-in.o

  GEN     .version

  CHK     include/linux/compile.h

  UPD     include/linux/compile.h

  CC      init/version.o

  LD      init/built-in.o

  LD      .tmp_vmlinux1

drivers/built-in.o(.init.text+0x10d0d): In function `gcov_core_init':

/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/drivers/gcov/gcov-core.c:234: undefined reference to `__CTOR_LIST__'

drivers/built-in.o(.init.text+0x10d12):/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/drivers/gcov/gcov-core.c:234: undefined reference to `__DTOR_LIST__'

make: *** [.tmp_vmlinux1] Error 1

 

 

and things go haywire……

 

 

Am I missing something??

 

Also this patch doesn’t work on SMP , any idea where latest SMP patch for 2.6.9 is available?

 

Can anyone list out the steps needed to provide gcov support with commands given….

 

There is lot of confusion about how to provide gcov kernel support to 2.6?

 

 

Please enlighten…

 

 

Sandeep.