]> asedeno.scripts.mit.edu Git - linux.git/blob - tools/perf/lib/include/internal/mmap.h
libperf: Add 'overwrite' to 'struct perf_mmap'
[linux.git] / tools / perf / lib / include / internal / mmap.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LIBPERF_INTERNAL_MMAP_H
3 #define __LIBPERF_INTERNAL_MMAP_H
4
5 #include <linux/refcount.h>
6 #include <linux/types.h>
7 #include <stdbool.h>
8
9 /**
10  * struct perf_mmap - perf's ring buffer mmap details
11  *
12  * @refcnt - e.g. code using PERF_EVENT_IOC_SET_OUTPUT to share this
13  */
14 struct perf_mmap {
15         void            *base;
16         int              mask;
17         int              fd;
18         int              cpu;
19         refcount_t       refcnt;
20         u64              prev;
21         u64              start;
22         u64              end;
23         bool             overwrite;
24 };
25
26 #endif /* __LIBPERF_INTERNAL_MMAP_H */