aboutsummaryrefslogtreecommitdiff
path: root/drivers/oprofile/event_buffer.h
diff options
context:
space:
mode:
authorJohn Levon <levon@movementarian.org>2005-06-23 22:02:47 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-24 00:06:27 -0700
commit0c0a400d1debb172c596b24ab82efab4975990a9 (patch)
tree58bd3604e46151662268bd558dce49ac8e72cca0 /drivers/oprofile/event_buffer.h
parent391cd727eac2e10be7685efd739a3ea9de87393c (diff)
[PATCH] oprofile: report anonymous region samples
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@redhat.com> Signed-off-by: John Levon <levon@movementarian.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/oprofile/event_buffer.h')
-rw-r--r--drivers/oprofile/event_buffer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/oprofile/event_buffer.h b/drivers/oprofile/event_buffer.h
index 442aaad391e..01802363059 100644
--- a/drivers/oprofile/event_buffer.h
+++ b/drivers/oprofile/event_buffer.h
@@ -35,6 +35,9 @@ void wake_up_buffer_waiter(void);
#define TRACE_BEGIN_CODE 8
#define TRACE_END_CODE 9
+#define INVALID_COOKIE ~0UL
+#define NO_COOKIE 0UL
+
/* add data to the event buffer */
void add_event_entry(unsigned long data);