diff options
author | John Levon <levon@movementarian.org> | 2005-06-24 01:02:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:06:27 -0400 |
commit | 0c0a400d1debb172c596b24ab82efab4975990a9 (patch) | |
tree | 58bd3604e46151662268bd558dce49ac8e72cca0 /drivers/oprofile/event_buffer.h | |
parent | 391cd727eac2e10be7685efd739a3ea9de87393c (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/oprofile/event_buffer.h b/drivers/oprofile/event_buffer.h index 442aaad391e0..018023630599 100644 --- a/drivers/oprofile/event_buffer.h +++ b/drivers/oprofile/event_buffer.h | |||
@@ -35,6 +35,9 @@ void wake_up_buffer_waiter(void); | |||
35 | #define TRACE_BEGIN_CODE 8 | 35 | #define TRACE_BEGIN_CODE 8 |
36 | #define TRACE_END_CODE 9 | 36 | #define TRACE_END_CODE 9 |
37 | 37 | ||
38 | #define INVALID_COOKIE ~0UL | ||
39 | #define NO_COOKIE 0UL | ||
40 | |||
38 | /* add data to the event buffer */ | 41 | /* add data to the event buffer */ |
39 | void add_event_entry(unsigned long data); | 42 | void add_event_entry(unsigned long data); |
40 | 43 | ||