diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-04-06 05:45:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-07 04:48:57 -0400 |
commit | 339f7c90b8a2f3aa2dd4267e79f797999e8a3c59 (patch) | |
tree | 9eaf2ff2b0d1dc66f753c74c99160a892d72a76e /include/linux/perf_counter.h | |
parent | ebb3c4c4cb81d64cc041356915ec015e2c57092a (diff) |
perf_counter: PERF_RECORD_TIME
By popular request, provide means to log a timestamp along with the
counter overflow event.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <20090406094518.024173282@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index ca2d4df29e0c..928a7fae0961 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -102,6 +102,7 @@ enum perf_counter_record_format { | |||
102 | PERF_RECORD_TID = 1U << 1, | 102 | PERF_RECORD_TID = 1U << 1, |
103 | PERF_RECORD_GROUP = 1U << 2, | 103 | PERF_RECORD_GROUP = 1U << 2, |
104 | PERF_RECORD_CALLCHAIN = 1U << 3, | 104 | PERF_RECORD_CALLCHAIN = 1U << 3, |
105 | PERF_RECORD_TIME = 1U << 4, | ||
105 | }; | 106 | }; |
106 | 107 | ||
107 | /* | 108 | /* |
@@ -221,6 +222,7 @@ enum perf_event_type { | |||
221 | __PERF_EVENT_TID = PERF_RECORD_TID, | 222 | __PERF_EVENT_TID = PERF_RECORD_TID, |
222 | __PERF_EVENT_GROUP = PERF_RECORD_GROUP, | 223 | __PERF_EVENT_GROUP = PERF_RECORD_GROUP, |
223 | __PERF_EVENT_CALLCHAIN = PERF_RECORD_CALLCHAIN, | 224 | __PERF_EVENT_CALLCHAIN = PERF_RECORD_CALLCHAIN, |
225 | __PERF_EVENT_TIME = PERF_RECORD_TIME, | ||
224 | }; | 226 | }; |
225 | 227 | ||
226 | #ifdef __KERNEL__ | 228 | #ifdef __KERNEL__ |