> I compile gcov on SUSE9, then I insmod module gcov-proc.ko,
> In makefile , i add following lines to CFLAGS
> -fprofile-arcs -ftest-coverage
> then I make and got my module enfs.ko
> but when I gcov -o /proc/modules/root/enfs /proc/modules/root/enfs/*.c , it shows
> that there is no .bbg file. I use this method in 2.6.15 before and it works.
> Is there something different on SUSE9 platform for gcov?
Did you specify the CONFIG_GCOV_HAMMER option during kernel compilation?
Quote from the Configuration help:
>> Some Linux distributions ship a modified version of GCC 3.3.x that
>> produces GCOV data incompatible with the format of the standard
>> GCC 3.3.x. If you are using such a distribution, you need to enable
>> this option for the GCOV kernel support to work correctly.
>> Distributions known to include this modification:
>> SUSE SLES9
>> Mandrake Linux 10.x
If you did, what kind of files do you see under /proc/gcov (output of find /proc/gcov would be nice).