Jiri Olsa | 353120b | 2019-10-07 14:53:09 +0200 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include <internal/mmap.h> | ||||
3 | |||||
4 | void perf_mmap__init(struct perf_mmap *map, bool overwrite) | ||||
5 | { | ||||
6 | map->fd = -1; | ||||
7 | map->overwrite = overwrite; | ||||
8 | refcount_set(&map->refcnt, 0); | ||||
9 | } |