Google luky.org euqset.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Help needed: GCOV - not getting HOW TO!!!


Hi guys,

	I got this mail from _someone_ asking me for help on /proc/gcov, I
guess he did not know about lkml. Since I don't know about modules in
linux. I thought of forwarding the mail on to you.





---------- Forwarded message ----------
From: prashanth M D <prashanthmd@xxxxxxxxxxxxx>
Date: Wed, 19 Jan 2005 12:55:36 +0530
Subject: Help needed: GCOV - not getting HOW TO!!!
To: plars@xxxxxxxxxxxxxxxxxxxx




Hello,

I got your id from google..
I have just started working on kernel code coverage project...

I have patched my kernel and i have configured the gcov kernel module support.
I compilied my module and i run insmod and i got my module executed.
But i am not getting the .da file in /proc/gcov/kernel for my module...
my sample module looks somthing like this,

#include<linux/module.h>
#include<linux/kernel.h>
#include<linux/config.h>

MODULE_LICENSE("GPL");

int init_module (void){

         printk("HELLO WORLD");
         return 0;
}

void cleanup_module (void){

         printk ("In cleanup module NTPL \n");

}

the commands are as follows...

1.  gcc  -D__KERNEL__ -DMODULE -DLINUX -O2 -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-strict-aliasing
     -c -o test.o -fprofile-arcs -ftest-coverage  test.c

2.  insmod gcov-proc.o

3.  insmod test.o

         This must generate a test.da file in /proc/gcov/kernel/
according to a manual i have but i am not
         getting this file generated...

I am using :
               kernel version linux-2.4.18
               gcc compiler version 3.0.4

Please tell me where i am going wrong.

Please help me out...

Thanking you,

Prashanth M D


--

My gutt feeling after some searches is that the guy forgot to apply the patch 

modutils-2.4.12-gcov.diff 

specified at 
http://ltp.sourceforge.net/coverage/gcov-kernel.readme



-- 

Imanpreet Singh Arora
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


$B$3$N>pJs$,$"$J$?$NC5$7$F$$?$b$N$+$I$&$+A*Br$7$F$/$@$5$!#(B
yes/$B$^$5$K$3$l$@!*(B   no/$B0c$&$J$!(B   part/$B0lIt8+$D$+$C$?(B   try/$B$3$l$G;n$7$F$_$k(B

$B$"$J$?$,C5$7$F$$?>pJs$O$I$N$h$&$J$3$H$+!"$4<+M3$K5-F~2<$5$!#FC$K!V$^$5$K$3$l$@!*!W$H8@$&>l9g$O5-F~$r$*4j$$7$^$9!#(B
$BNc(B:$B!VJ#?t$N%^%7%s$+$i(BCATV$B7PM3$G(Bipmasquerade$B$rMxMQ$7$F(BWeb$B$r;2>H$7$?$>l9g$N@_Dj$K$D$$F!W(B
References: