aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-22 14:34:35 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-25 21:39:05 +0200
commit7f8b4e4e0988dadfd22330fd147ad2453e19f510 (patch)
treeb57c6b0fbfd3718dbc6f27bd7f422bb276c11469 /include/linux/perf_counter.h
parentperf_counter: Split the mmap control page in two parts (diff)
downloadlinux-dev-7f8b4e4e0988dadfd22330fd147ad2453e19f510.tar.xz
linux-dev-7f8b4e4e0988dadfd22330fd147ad2453e19f510.zip
perf_counter: Add scale information to the mmap control page
Add the needed time scale to the self-profile mmap information. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 489d5cbfbcca..bcbf1c43ed42 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -232,12 +232,14 @@ struct perf_counter_mmap_page {
__u32 lock; /* seqlock for synchronization */
__u32 index; /* hardware counter identifier */
__s64 offset; /* add to hardware counter value */
+ __u64 time_enabled; /* time counter active */
+ __u64 time_running; /* time counter on cpu */
/*
* Hole for extension of the self monitor capabilities
*/
- __u64 __reserved[125]; /* align to 1k */
+ __u64 __reserved[123]; /* align to 1k */
/*
* Control data for the mmap() data buffer.