diff options
author | Jiri Olsa <jolsa@kernel.org> | 2019-09-05 04:11:37 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-25 08:51:45 -0400 |
commit | e6b1878d4eea85ab453e4b198cbb26a34614fdc0 (patch) | |
tree | b210f4d9672792d6e2c2eb78334c4956deabd404 /tools | |
parent | 470579b0211d370fd3bd7c2f2b2b098f1ca1ae65 (diff) |
perf tools: Rename perf_evlist__purge() to evlist__purge()
Rename (perf_evlist__purge) to evlist__purge(), so we don't have a
name clash when we add (perf_evlist__purge) in libperf.
Signed-off-by: Jiri 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-9-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/evlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 4c5b7040c02b..c96c743cc1d2 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -124,7 +124,7 @@ static void perf_evlist__update_id_pos(struct evlist *evlist) | |||
124 | perf_evlist__set_id_pos(evlist); | 124 | perf_evlist__set_id_pos(evlist); |
125 | } | 125 | } |
126 | 126 | ||
127 | static void perf_evlist__purge(struct evlist *evlist) | 127 | static void evlist__purge(struct evlist *evlist) |
128 | { | 128 | { |
129 | struct evsel *pos, *n; | 129 | struct evsel *pos, *n; |
130 | 130 | ||
@@ -155,7 +155,7 @@ void evlist__delete(struct evlist *evlist) | |||
155 | perf_thread_map__put(evlist->core.threads); | 155 | perf_thread_map__put(evlist->core.threads); |
156 | evlist->core.cpus = NULL; | 156 | evlist->core.cpus = NULL; |
157 | evlist->core.threads = NULL; | 157 | evlist->core.threads = NULL; |
158 | perf_evlist__purge(evlist); | 158 | evlist__purge(evlist); |
159 | evlist__exit(evlist); | 159 | evlist__exit(evlist); |
160 | free(evlist); | 160 | free(evlist); |
161 | } | 161 | } |