|
@@ -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;
|
|
|
|
- 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;
|
|
struct perf_counter_mmap_page *user_page;
|
|
void *data_pages[0];
|
|
void *data_pages[0];
|
|
};
|
|
};
|