aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_counter.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-02 05:12:01 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-06 03:30:45 -0400
commitc457810ab4a825161aec6ef71b581e1bc8febd1a (patch)
treeeccb22f8c868c4d8807657658027261eb97ed37f /include/linux/perf_counter.h
parent8a057d84912f36e53f970c4d177cb4bb6b2f9e08 (diff)
perf_counter: per event wakeups
By request, provide a way to request a wakeup every 'n' events instead of every page of output. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Orig-LKML-Reference: <20090402091319.323309784@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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 06a6fba9f531..5428ba120d78 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -145,7 +145,7 @@ struct perf_counter_hw_event {
145 __reserved_1 : 53; 145 __reserved_1 : 53;
146 146
147 __u32 extra_config_len; 147 __u32 extra_config_len;
148 __u32 __reserved_4; 148 __u32 wakeup_events; /* wakeup every n events */
149 149
150 __u64 __reserved_2; 150 __u64 __reserved_2;
151 __u64 __reserved_3; 151 __u64 __reserved_3;
@@ -321,6 +321,7 @@ struct perf_mmap_data {
321 int nr_pages; 321 int nr_pages;
322 atomic_t wakeup; 322 atomic_t wakeup;
323 atomic_t head; 323 atomic_t head;
324 atomic_t events;
324 struct perf_counter_mmap_page *user_page; 325 struct perf_counter_mmap_page *user_page;
325 void *data_pages[0]; 326 void *data_pages[0];
326}; 327};