Jiri Olsa | 547740f | 2019-07-27 22:07:44 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef __LIBPERF_INTERNAL_MMAP_H | ||||
3 | #define __LIBPERF_INTERNAL_MMAP_H | ||||
4 | |||||
Jiri Olsa | e03edfe | 2019-07-27 22:35:35 +0200 | [diff] [blame] | 5 | #include <linux/refcount.h> |
Jiri Olsa | ebe4d72 | 2019-07-27 22:39:53 +0200 | [diff] [blame^] | 6 | #include <linux/types.h> |
Jiri Olsa | e03edfe | 2019-07-27 22:35:35 +0200 | [diff] [blame] | 7 | |
Jiri Olsa | 547740f | 2019-07-27 22:07:44 +0200 | [diff] [blame] | 8 | /** |
9 | * struct perf_mmap - perf's ring buffer mmap details | ||||
10 | * | ||||
11 | * @refcnt - e.g. code using PERF_EVENT_IOC_SET_OUTPUT to share this | ||||
12 | */ | ||||
13 | struct perf_mmap { | ||||
14 | void *base; | ||||
Jiri Olsa | 4fd0cef | 2019-07-27 22:27:55 +0200 | [diff] [blame] | 15 | int mask; |
Jiri Olsa | 2cf07b2 | 2019-07-27 22:31:17 +0200 | [diff] [blame] | 16 | int fd; |
Jiri Olsa | 56a9470 | 2019-07-27 22:33:20 +0200 | [diff] [blame] | 17 | int cpu; |
Jiri Olsa | e03edfe | 2019-07-27 22:35:35 +0200 | [diff] [blame] | 18 | refcount_t refcnt; |
Jiri Olsa | ebe4d72 | 2019-07-27 22:39:53 +0200 | [diff] [blame^] | 19 | u64 prev; |
20 | u64 start; | ||||
21 | u64 end; | ||||
Jiri Olsa | 547740f | 2019-07-27 22:07:44 +0200 | [diff] [blame] | 22 | }; |
23 | |||||
24 | #endif /* __LIBPERF_INTERNAL_MMAP_H */ |