summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-04-08 15:01:29 +0200
committerIngo Molnar <mingo@elte.hu>2009-04-08 18:53:29 +0200
commit8740f9418c78dcad694b46ab25d1645d5aef1f5e (patch)
tree877e35686a93c7430b9574a3e8d083f0cbe51659 /include
parent808382b33bb4c60df6379ec2db39f332cc56b82a (diff)
downloadop-kernel-dev-8740f9418c78dcad694b46ab25d1645d5aef1f5e.zip
op-kernel-dev-8740f9418c78dcad694b46ab25d1645d5aef1f5e.tar.gz
perf_counter: add some comments
Add a few comments because I was forgetting what field what for what functionality. Signed-off-by: Peter 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: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/perf_counter.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h
index 4809ae1..8bf764fc 100644
--- a/include/linux/perf_counter.h
+++ b/include/linux/perf_counter.h
@@ -344,10 +344,12 @@ struct file;
struct perf_mmap_data {
struct rcu_head rcu_head;
- int nr_pages;
- atomic_t wakeup;
- atomic_t head;
- atomic_t events;
+ int nr_pages; /* nr of data pages */
+
+ atomic_t wakeup; /* POLL_ for wakeups */
+ atomic_t head; /* write position */
+ atomic_t events; /* event limit */
+
struct perf_counter_mmap_page *user_page;
void *data_pages[0];
};
OpenPOWER on IntegriCloud