diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-06-05 09:05:43 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-05 12:07:47 -0400 |
commit | 689802b2d0536e72281dc959ab9cb34fb3c304cf (patch) | |
tree | 9be866e918391e86eaecd8a05124f86693504d3f /include | |
parent | ac4bcf889469ffbca88f234d3184452886a47905 (diff) |
perf_counter: Add PERF_SAMPLE_PERIOD
In order to allow easy tracking of the period, also provide means of
adding it to the sample data.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-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 9cea32a0655d..6bc250039738 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -106,6 +106,7 @@ enum perf_counter_sample_format { | |||
106 | PERF_SAMPLE_CALLCHAIN = 1U << 5, | 106 | PERF_SAMPLE_CALLCHAIN = 1U << 5, |
107 | PERF_SAMPLE_ID = 1U << 6, | 107 | PERF_SAMPLE_ID = 1U << 6, |
108 | PERF_SAMPLE_CPU = 1U << 7, | 108 | PERF_SAMPLE_CPU = 1U << 7, |
109 | PERF_SAMPLE_PERIOD = 1U << 8, | ||
109 | }; | 110 | }; |
110 | 111 | ||
111 | /* | 112 | /* |
@@ -260,6 +261,7 @@ enum perf_event_type { | |||
260 | * struct { | 261 | * struct { |
261 | * struct perf_event_header header; | 262 | * struct perf_event_header header; |
262 | * u64 time; | 263 | * u64 time; |
264 | * u64 id; | ||
263 | * u64 sample_period; | 265 | * u64 sample_period; |
264 | * }; | 266 | * }; |
265 | */ | 267 | */ |