kernprof
[Top] [All Lists]

Re: profiling kernel modules...

To: Mike Brown <mbrown@xxxxxxx>
Subject: Re: profiling kernel modules...
From: Murali Vilayannur <vilayann@xxxxxxxxxxx>
Date: Tue, 10 Jun 2003 10:33:52 -0500 (CDT)
Cc: Castor Fu <castor@xxxxxxxxxxxx>, kernprof@xxxxxxxxxxx
In-reply-to: <Pine.LNX.4.33.0306091536010.28220-100000@marais>
Sender: kernprof-bounce@xxxxxxxxxxx
Hi,

The easier way out for me was to build our module into the kernel.
Profiling turned out to be quite easy this way. I havent done too much
research on how to hack kernprof to get it to profile kernel modules.
Thanks,

Murali

On Mon, 9 Jun 2003, Castor Fu wrote:

> On Mon, 9 Jun 2003, Mike Brown wrote:
> 
> > hi,
> >
> > i searched the archives and found that someone else has asked this question,
> > but there didn't seem to be a reply to it.
> >
> > Is there any way to profile kernel modules?
> >
> > Thanks.
> >
> > -Michael F. Brown, EMC Corp.
> 
> If I recall, the main problem is that the various gprof tools don't
> do too well with segmented memory, so it's fairly easy to hack things
> to look at either vmalloc'ed memory or normal kmem, and even to save
> data for both, but to analyze both, you'll need to fix the tools for
> digesting the resulting profile, or roll your own.
> 
>     -castor
> 
> 


<Prev in Thread] Current Thread [Next in Thread>