perf evsel: Rename perf_evsel__enable() to evsel__enable()
authorJiri Olsa <jolsa@kernel.org>
Sun, 21 Jul 2019 11:24:02 +0000 (13:24 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Jul 2019 21:34:43 +0000 (18:34 -0300)
Rename perf_evsel__enable() to evsel__enable(), so we don't have a name
clash when we add perf_evsel__enable() 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-16-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm/util/cs-etm.c
tools/perf/arch/x86/util/intel-bts.c
tools/perf/arch/x86/util/intel-pt.c
tools/perf/tests/event-times.c
tools/perf/tests/switch-tracking.c
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel.h

index 91c64daa448728affb3b7b5dc45fde14b700c69d..4b70b95046031f0cb410134d525033e8c18d9990 100644 (file)
@@ -834,7 +834,7 @@ static int cs_etm_snapshot_finish(struct auxtrace_record *itr)
 
        evlist__for_each_entry(ptr->evlist, evsel) {
                if (evsel->attr.type == ptr->cs_etm_pmu->type)
-                       return perf_evsel__enable(evsel);
+                       return evsel__enable(evsel);
        }
        return -EINVAL;
 }
index c845531d383a87d54e30589178f27b0379941de9..d27832fcb34c10e115f1ca596b935a3b3f2ef9b1 100644 (file)
@@ -330,7 +330,7 @@ static int intel_bts_snapshot_finish(struct auxtrace_record *itr)
 
        evlist__for_each_entry(btsr->evlist, evsel) {
                if (evsel->attr.type == btsr->intel_bts_pmu->type)
-                       return perf_evsel__enable(evsel);
+                       return evsel__enable(evsel);
        }
        return -EINVAL;
 }
index e4dfe8c3d5c34f5b11448f2517317441c4ac6e75..e3dacb2bf01b0fc7f0be00d736d47edc4bede0ad 100644 (file)
@@ -801,7 +801,7 @@ static int intel_pt_snapshot_finish(struct auxtrace_record *itr)
 
        evlist__for_each_entry(ptr->evlist, evsel) {
                if (evsel->attr.type == ptr->intel_pt_pmu->type)
-                       return perf_evsel__enable(evsel);
+                       return evsel__enable(evsel);
        }
        return -EINVAL;
 }
index 0f74ca103c41b0adb2e16bed993e450c7c7c95ca..6f9995df2c27da3c450eb201ddf936cbc1a6620f 100644 (file)
@@ -77,7 +77,7 @@ static int attach__current_disabled(struct evlist *evlist)
        }
 
        thread_map__put(threads);
-       return perf_evsel__enable(evsel) == 0 ? TEST_OK : TEST_FAIL;
+       return evsel__enable(evsel) == 0 ? TEST_OK : TEST_FAIL;
 }
 
 static int attach__current_enabled(struct evlist *evlist)
@@ -104,7 +104,7 @@ static int detach__disable(struct evlist *evlist)
 {
        struct evsel *evsel = perf_evlist__last(evlist);
 
-       return perf_evsel__enable(evsel);
+       return evsel__enable(evsel);
 }
 
 static int attach__cpu_disabled(struct evlist *evlist)
@@ -133,7 +133,7 @@ static int attach__cpu_disabled(struct evlist *evlist)
        }
 
        cpu_map__put(cpus);
-       return perf_evsel__enable(evsel);
+       return evsel__enable(evsel);
 }
 
 static int attach__cpu_enabled(struct evlist *evlist)
index ac5da4fd222fa07f5f22820f0fdcf2dd4b6b3462..acc4b5ff0cea09622a28a053f8e414fd8972b142 100644 (file)
@@ -509,7 +509,7 @@ int test__switch_tracking(struct test *test __maybe_unused, int subtest __maybe_
                goto out_err;
        }
 
-       err = perf_evsel__enable(cycles_evsel);
+       err = evsel__enable(cycles_evsel);
        if (err) {
                pr_debug("perf_evlist__disable_event failed!\n");
                goto out_err;
index 4627cc47de3e6306194291db522097b06e765e40..e87c43e339d019928fac27fc04689d1c899231a6 100644 (file)
@@ -363,7 +363,7 @@ void perf_evlist__enable(struct evlist *evlist)
        evlist__for_each_entry(evlist, pos) {
                if (!perf_evsel__is_group_leader(pos) || !pos->fd)
                        continue;
-               perf_evsel__enable(pos);
+               evsel__enable(pos);
        }
 
        evlist->enabled = true;
@@ -1927,7 +1927,7 @@ int perf_evlist__start_sb_thread(struct evlist *evlist,
                goto out_delete_evlist;
 
        evlist__for_each_entry(evlist, counter) {
-               if (perf_evsel__enable(counter))
+               if (evsel__enable(counter))
                        goto out_delete_evlist;
        }
 
index f365d0685268c6b31e59750663a33b8c1aacdeb0..7adae1736191f6bf8b88aa186271d54f53b31ea1 100644 (file)
@@ -1234,7 +1234,7 @@ int perf_evsel__append_addr_filter(struct evsel *evsel, const char *filter)
        return perf_evsel__append_filter(evsel, "%s,%s", filter);
 }
 
-int perf_evsel__enable(struct evsel *evsel)
+int evsel__enable(struct evsel *evsel)
 {
        int err = perf_evsel__run_ioctl(evsel, PERF_EVENT_IOC_ENABLE, 0);
 
index d43409bb07c56e9a5ddfc8a583957aa346747f07..fa26c583a606fc0eec452ca0dac6e5e05ee29713 100644 (file)
@@ -295,7 +295,7 @@ int perf_evsel__append_tp_filter(struct evsel *evsel, const char *filter);
 int perf_evsel__append_addr_filter(struct evsel *evsel,
                                   const char *filter);
 int perf_evsel__apply_filter(struct evsel *evsel, const char *filter);
-int perf_evsel__enable(struct evsel *evsel);
+int evsel__enable(struct evsel *evsel);
 int perf_evsel__disable(struct evsel *evsel);
 
 int perf_evsel__open_per_cpu(struct evsel *evsel,