1 Jun 2005 13:48
[PATCH] oprofile: report anonymous region samples
John Levon <levon <at> movementarian.org>
2005-06-01 11:48:18 GMT
2005-06-01 11:48:18 GMT
The below patch passes samples from anonymous regions to userspace
instead of just dropping them. This provides the support needed for
reporting anonymous-region code samples (today: basic accumulated
results; later: Java and other dynamically compiled code).
As this changes the format, an upgrade to the just-released 0.9 release
of the userspace tools is required.
This patch is based upon an earlier one by Will Cohen <wcohen <at> redhat.com>
thanks,
john
Signed-off-by: John Levon <levon <at> movementarian.org>
Index: linux-cvs/drivers/oprofile/buffer_sync.c
===================================================================
RCS file: /home/moz/cvs//linux-2.5/drivers/oprofile/buffer_sync.c,v
retrieving revision 1.30
diff -u -a -p -u -r1.30 buffer_sync.c
--- linux-cvs/drivers/oprofile/buffer_sync.c 14 Mar 2005 00:32:33 -0000 1.30
+++ linux-cvs/drivers/oprofile/buffer_sync.c 26 Apr 2005 13:20:24 -0000
<at> <at> -206,7 +206,7 <at> <at> static inline unsigned long fast_get_dco
*/
static unsigned long get_exec_dcookie(struct mm_struct * mm)
{
- unsigned long cookie = 0;
+ unsigned long cookie = NO_COOKIE;
struct vm_area_struct * vma;
(Continue reading)
So, and this is purely Gestalt at this point, has anyone thought about
hacking Oprofile to stand up really early in the boot process for such a
purpose?
Ok, so the data might not be actionable, but it would be reasonably
interesting/fun.
Regards,
Phil
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit
RSS Feed