[PATCH 30/48] perf tools: Rename perf_evlist__munmap_filtered to perf_mmap__put_filtered
From: Jiri Olsa
Date: Thu Sep 13 2018 - 08:57:47 EST
We will use it outside the evlist scope.
Link: http://lkml.kernel.org/n/tip-0r9rtn1bii1iaggumlgkyxqk@xxxxxxxxxxxxxx
Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
---
tools/perf/util/evlist.c | 6 +++---
tools/perf/util/evlist.h | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
index 2f094f3bf446..05f57814e9e5 100644
--- a/tools/perf/util/evlist.c
+++ b/tools/perf/util/evlist.c
@@ -503,8 +503,8 @@ int perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd)
return __perf_evlist__add_pollfd(evlist, fd, NULL, POLLIN);
}
-static void perf_evlist__munmap_filtered(struct fdarray *fda, int fd,
- void *arg __maybe_unused)
+void perf_mmap__put_filtered(struct fdarray *fda, int fd,
+ void *arg __maybe_unused)
{
struct perf_mmap *map = fda->priv[fd].ptr;
@@ -515,7 +515,7 @@ static void perf_evlist__munmap_filtered(struct fdarray *fda, int fd,
int perf_evlist__filter_pollfd(struct perf_evlist *evlist, short revents_and_mask)
{
return fdarray__filter(&evlist->pollfd, revents_and_mask,
- perf_evlist__munmap_filtered, NULL);
+ perf_mmap__put_filtered, NULL);
}
int perf_evlist__poll(struct perf_evlist *evlist, int timeout)
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h
index df5162c4292b..523bd68a78a3 100644
--- a/tools/perf/util/evlist.h
+++ b/tools/perf/util/evlist.h
@@ -316,4 +316,5 @@ bool perf_evlist__exclude_kernel(struct perf_evlist *evlist);
void perf_evlist__force_leader(struct perf_evlist *evlist);
+void perf_mmap__put_filtered(struct fdarray *fda, int fd, void *arg);
#endif /* __PERF_EVLIST_H */
--
2.17.1