Commit d50cf361 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

perf tools: Rename perf_evlist__alloc_mmap() to evlist__alloc_mmap()

Rename perf_evlist__alloc_mmap() to evlist__alloc_mmap(), so we don't
have a name clash when we add perf_evlist__alloc_mmap() to libperf.
Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lore.kernel.org/lkml/20190913132355.21634-7-jolsa@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent db6b7b13
...@@ -693,8 +693,8 @@ void evlist__munmap(struct evlist *evlist) ...@@ -693,8 +693,8 @@ void evlist__munmap(struct evlist *evlist)
zfree(&evlist->overwrite_mmap); zfree(&evlist->overwrite_mmap);
} }
static struct mmap *perf_evlist__alloc_mmap(struct evlist *evlist, static struct mmap *evlist__alloc_mmap(struct evlist *evlist,
bool overwrite) bool overwrite)
{ {
int i; int i;
struct mmap *map; struct mmap *map;
...@@ -752,7 +752,7 @@ static int evlist__mmap_per_evsel(struct evlist *evlist, int idx, ...@@ -752,7 +752,7 @@ static int evlist__mmap_per_evsel(struct evlist *evlist, int idx,
maps = evlist->overwrite_mmap; maps = evlist->overwrite_mmap;
if (!maps) { if (!maps) {
maps = perf_evlist__alloc_mmap(evlist, true); maps = evlist__alloc_mmap(evlist, true);
if (!maps) if (!maps)
return -1; return -1;
evlist->overwrite_mmap = maps; evlist->overwrite_mmap = maps;
...@@ -1004,7 +1004,7 @@ int evlist__mmap_ex(struct evlist *evlist, unsigned int pages, ...@@ -1004,7 +1004,7 @@ int evlist__mmap_ex(struct evlist *evlist, unsigned int pages,
.comp_level = comp_level }; .comp_level = comp_level };
if (!evlist->mmap) if (!evlist->mmap)
evlist->mmap = perf_evlist__alloc_mmap(evlist, false); evlist->mmap = evlist__alloc_mmap(evlist, false);
if (!evlist->mmap) if (!evlist->mmap)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment