Commit 8740f941 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar

perf_counter: add some comments

Add a few comments because I was forgetting what field what for what
functionality.
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <20090408130409.036984214@chello.nl>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 808382b3
...@@ -344,10 +344,12 @@ struct file; ...@@ -344,10 +344,12 @@ struct file;
struct perf_mmap_data { struct perf_mmap_data {
struct rcu_head rcu_head; struct rcu_head rcu_head;
int nr_pages; int nr_pages; /* nr of data pages */
atomic_t wakeup;
atomic_t head; atomic_t wakeup; /* POLL_ for wakeups */
atomic_t events; atomic_t head; /* write position */
atomic_t events; /* event limit */
struct perf_counter_mmap_page *user_page; struct perf_counter_mmap_page *user_page;
void *data_pages[0]; void *data_pages[0];
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment