perf evlist: Rename perf_evlist__remove() to evlist__remove()
authorJiri Olsa <jolsa@kernel.org>
Sun, 21 Jul 2019 11:24:00 +0000 (13:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Jul 2019 21:34:43 +0000 (18:34 -0300)
Rename perf_evlist__remove() to evlist__remove(), so we don't have a
name clash when we add perf_evlist__remove() in libperf.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Budankov <alexey.budankov@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190721112506.12306-14-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-inject.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h

index 917c8fb4baa50bd022384f0d8e08cbbdda7e4ec0..4e56e399bbc81202366f2fe52e3ccfd5b1b6461a 100644 (file)
@@ -622,7 +622,7 @@ static void strip_fini(struct perf_inject *inject)
                if (evsel->handler == drop_sample &&
                    ok_to_remove(evlist, evsel)) {
                        pr_debug("Deleting %s\n", perf_evsel__name(evsel));
-                       perf_evlist__remove(evlist, evsel);
+                       evlist__remove(evlist, evsel);
                        evsel__delete(evsel);
                }
        }
@@ -724,7 +724,7 @@ static int __cmd_inject(struct perf_inject *inject)
                        if (evsel) {
                                pr_debug("Deleting %s\n",
                                         perf_evsel__name(evsel));
-                               perf_evlist__remove(session->evlist, evsel);
+                               evlist__remove(session->evlist, evsel);
                                evsel__delete(evsel);
                        }
                        if (inject->strip)
index 7741e12bdcb0e3b7e1e7e688da91c3c4bbc7629b..47516db624247cac06cd0b52fa191994cbcd8ba3 100644 (file)
@@ -190,7 +190,7 @@ void evlist__add(struct evlist *evlist, struct evsel *entry)
        __perf_evlist__propagate_maps(evlist, entry);
 }
 
-void perf_evlist__remove(struct evlist *evlist, struct evsel *evsel)
+void evlist__remove(struct evlist *evlist, struct evsel *evsel)
 {
        evsel->evlist = NULL;
        list_del_init(&evsel->node);
index d52b29a1d8522b626ded9971d76347ac489e7b40..b3a44e2eed08e242c27393b87152f0c835f60df9 100644 (file)
@@ -74,7 +74,7 @@ void perf_evlist__exit(struct evlist *evlist);
 void evlist__delete(struct evlist *evlist);
 
 void evlist__add(struct evlist *evlist, struct evsel *entry);
-void perf_evlist__remove(struct evlist *evlist, struct evsel *evsel);
+void evlist__remove(struct evlist *evlist, struct evsel *evsel);
 
 int __perf_evlist__add_default(struct evlist *evlist, bool precise);