aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-05 15:05:43 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-05 18:07:47 +0200
commit689802b2d0536e72281dc959ab9cb34fb3c304cf (patch)
tree9be866e918391e86eaecd8a05124f86693504d3f /include/linux/perf_counter.h
parentac4bcf889469ffbca88f234d3184452886a47905 (diff)
downloadkernel_samsung_aries-689802b2d0536e72281dc959ab9cb34fb3c304cf.zip
kernel_samsung_aries-689802b2d0536e72281dc959ab9cb34fb3c304cf.tar.gz
kernel_samsung_aries-689802b2d0536e72281dc959ab9cb34fb3c304cf.tar.bz2
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/linux/perf_counter.h')
-rw-r--r--include/linux/perf_counter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 9cea32a..6bc2500 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -106,6 +106,7 @@ enum perf_counter_sample_format {
PERF_SAMPLE_CALLCHAIN = 1U << 5,
PERF_SAMPLE_ID = 1U << 6,
PERF_SAMPLE_CPU = 1U << 7,
+ PERF_SAMPLE_PERIOD = 1U << 8,
};
/*
@@ -260,6 +261,7 @@ enum perf_event_type {
* struct {
* struct perf_event_header header;
* u64 time;
+ * u64 id;
* u64 sample_period;
* };
*/