Re: Profiling of modules

Andi Kleen (ak@muc.de)
03 Jan 1999 14:24:58 +0100


In article <ixd1zldjt0i.fsf@turbot.pdc.kth.se>,
map@stacken.kth.se (Magnus Ahltorp) writes:
> When I look in init/main.c, I see that the profiling buffer is only
> allocated for the text of the main kernel. Is there any easy way for
> me to profile my modules also?

Not without hacking. You would need to allocate a profiling buffer on
module loading, and extend x86_do_profile (or the equivalent on the
platform you're using) to search a table of these secondary buffers.

The profiler puts out-of-bound EIP values into the last histogram slot,
so you see at least when your module runs @)

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/