lkml.org 
[lkml]   [1999]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Profiling of modules
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.031 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site