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
>
>
|