projects
/
linux-2.6-block.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
libperf: Add perf_mmap__init() function
[linux-2.6-block.git]
/
tools
/
perf
/
lib
/
mmap.c
Commit
Line
Data
353120b4
JO
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
}