aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-11-21 05:43:53 -0500
committerIngo Molnar <mingo@elte.hu>2011-12-21 05:01:13 -0500
commite3f3541c19c89a4daae39300defba68943301949 (patch)
treef3d6fe5c39dfee8045e7955e5637ae9ff9c0d4d5 /include/linux/perf_event.h
parent0c9d42ed4cee2aa1dfc3a260b741baae8615744f (diff)
perf: Extend the mmap control page with time (TSC) fields
Extend the mmap control page with fields so that userspace can compute time deltas relative to the provided time fields. Currently only implemented for x86 with constant and nonstop TSC. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Cc: Arun Sharma <asharma@fb.com> Link: http://lkml.kernel.org/n/tip-3u1jucza77j3wuvs0x2bic0f@git.kernel.org Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 5311b79fe62c..0b91db2522cc 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -291,12 +291,14 @@ struct perf_event_mmap_page {
291 __s64 offset; /* add to hardware event value */ 291 __s64 offset; /* add to hardware event value */
292 __u64 time_enabled; /* time event active */ 292 __u64 time_enabled; /* time event active */
293 __u64 time_running; /* time event on cpu */ 293 __u64 time_running; /* time event on cpu */
294 __u32 time_mult, time_shift;
295 __u64 time_offset;
294 296
295 /* 297 /*
296 * Hole for extension of the self monitor capabilities 298 * Hole for extension of the self monitor capabilities
297 */ 299 */
298 300
299 __u64 __reserved[123]; /* align to 1k */ 301 __u64 __reserved[121]; /* align to 1k */
300 302
301 /* 303 /*
302 * Control data for the mmap() data buffer. 304 * Control data for the mmap() data buffer.