perf tools: Rename perf_evlist__exit() to evlist__exit()
authorJiri Olsa <jolsa@kernel.org>
Mon, 2 Sep 2019 12:34:52 +0000 (14:34 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Sep 2019 12:51:44 +0000 (09:51 -0300)
Rename perf_evlist__exit() to evlist__exit(), so we don't have a name
clash when we add perf_evlist__exit() to 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-8-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/python.c

index 5bde2e5bf0e354f4d330fd8b72bde700475da945..4c5b7040c02bbfac777e9f4f7e7cdbfe02aac575 100644 (file)
@@ -137,7 +137,7 @@ static void perf_evlist__purge(struct evlist *evlist)
        evlist->core.nr_entries = 0;
 }
 
-void perf_evlist__exit(struct evlist *evlist)
+void evlist__exit(struct evlist *evlist)
 {
        zfree(&evlist->mmap);
        zfree(&evlist->overwrite_mmap);
@@ -156,7 +156,7 @@ void evlist__delete(struct evlist *evlist)
        evlist->core.cpus = NULL;
        evlist->core.threads = NULL;
        perf_evlist__purge(evlist);
-       perf_evlist__exit(evlist);
+       evlist__exit(evlist);
        free(evlist);
 }
 
index f07501602353cf3caceefde4854a8066e7e5de8d..b33c5d67410a5b40ccf1d0c913ced8ecf00b4694 100644 (file)
@@ -65,7 +65,7 @@ struct evlist *perf_evlist__new_default(void);
 struct evlist *perf_evlist__new_dummy(void);
 void evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus,
                  struct perf_thread_map *threads);
-void perf_evlist__exit(struct evlist *evlist);
+void evlist__exit(struct evlist *evlist);
 void evlist__delete(struct evlist *evlist);
 
 void evlist__add(struct evlist *evlist, struct evsel *entry);
index b102d174b86867b25e006fbb8b3073f1628fe14e..60a6b6e8e17641342bc7e64884ae3343e10a9211 100644 (file)
@@ -884,7 +884,7 @@ static int pyrf_evlist__init(struct pyrf_evlist *pevlist,
 
 static void pyrf_evlist__delete(struct pyrf_evlist *pevlist)
 {
-       perf_evlist__exit(&pevlist->evlist);
+       evlist__exit(&pevlist->evlist);
        Py_TYPE(pevlist)->tp_free((PyObject*)pevlist);
 }