linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Help needed: GCOV - not getting HOW TO!!!
@ 2005-01-19  7:25 prashanth M D
  2005-01-20 17:21 ` Fwd: " Imanpreet Arora
  0 siblings, 1 reply; 2+ messages in thread
From: prashanth M D @ 2005-01-19  7:25 UTC (permalink / raw)
  To: plars



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
Phone : 9886340890

-- 
______________________________________________
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com 
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Powered by Outblaze

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Fwd: Help needed: GCOV - not getting HOW TO!!!
  2005-01-19  7:25 Help needed: GCOV - not getting HOW TO!!! prashanth M D
@ 2005-01-20 17:21 ` Imanpreet Arora
  0 siblings, 0 replies; 2+ messages in thread
From: Imanpreet Arora @ 2005-01-20 17:21 UTC (permalink / raw)
  To: linux-kernel

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@indiainfo.com>
Date: Wed, 19 Jan 2005 12:55:36 +0530
Subject: Help needed: GCOV - not getting HOW TO!!!
To: plars@linuxtestproject.org




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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-20 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-19  7:25 Help needed: GCOV - not getting HOW TO!!! prashanth M D
2005-01-20 17:21 ` Fwd: " Imanpreet Arora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).