diff options
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index cef9931793fd..c046f7d97cfa 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -212,7 +212,7 @@ struct perf_counter_mmap_page { | |||
212 | * User-space reading this value should issue an rmb(), on SMP capable | 212 | * User-space reading this value should issue an rmb(), on SMP capable |
213 | * platforms, after reading this value -- see perf_counter_wakeup(). | 213 | * platforms, after reading this value -- see perf_counter_wakeup(). |
214 | */ | 214 | */ |
215 | __u32 data_head; /* head in the data section */ | 215 | __u64 data_head; /* head in the data section */ |
216 | }; | 216 | }; |
217 | 217 | ||
218 | #define PERF_EVENT_MISC_CPUMODE_MASK (3 << 0) | 218 | #define PERF_EVENT_MISC_CPUMODE_MASK (3 << 0) |
@@ -397,10 +397,11 @@ struct perf_mmap_data { | |||
397 | int nr_locked; /* nr pages mlocked */ | 397 | int nr_locked; /* nr pages mlocked */ |
398 | 398 | ||
399 | atomic_t poll; /* POLL_ for wakeups */ | 399 | atomic_t poll; /* POLL_ for wakeups */ |
400 | atomic_t head; /* write position */ | ||
401 | atomic_t events; /* event limit */ | 400 | atomic_t events; /* event limit */ |
402 | 401 | ||
403 | atomic_t done_head; /* completed head */ | 402 | atomic_long_t head; /* write position */ |
403 | atomic_long_t done_head; /* completed head */ | ||
404 | |||
404 | atomic_t lock; /* concurrent writes */ | 405 | atomic_t lock; /* concurrent writes */ |
405 | 406 | ||
406 | atomic_t wakeup; /* needs a wakeup */ | 407 | atomic_t wakeup; /* needs a wakeup */ |