]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
perf evlist: Rename perf_evlist__init() to evlist__init()
authorJiri Olsa <jolsa@kernel.org>
Sun, 21 Jul 2019 11:23:54 +0000 (13:23 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 29 Jul 2019 21:34:42 +0000 (18:34 -0300)
Rename perf_evlist__init() to evlist__init(), so we don't have a name
clash when we add perf_evlist__init() 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-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 c234fa4ba92afc1448d379413df63ef86a7315e5..4fcd55c8a8d52a1bf164a947b31097b9dc62691e 100644 (file)
@@ -41,8 +41,8 @@ int sigqueue(pid_t pid, int sig, const union sigval value);
 #define FD(e, x, y) (*(int *)xyarray__entry(e->fd, x, y))
 #define SID(e, x, y) xyarray__entry(e->sample_id, x, y)
 
-void perf_evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus,
-                      struct perf_thread_map *threads)
+void evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus,
+                 struct perf_thread_map *threads)
 {
        int i;
 
@@ -60,7 +60,7 @@ struct evlist *perf_evlist__new(void)
        struct evlist *evlist = zalloc(sizeof(*evlist));
 
        if (evlist != NULL)
-               perf_evlist__init(evlist, NULL, NULL);
+               evlist__init(evlist, NULL, NULL);
 
        return evlist;
 }
index 54f1c3e2b721a1f641f79ae6ae14eff76436ab9b..d6a3fa461566b16434294eb76c7d3dceabf33556 100644 (file)
@@ -68,8 +68,8 @@ struct evsel_str_handler {
 struct evlist *perf_evlist__new(void);
 struct evlist *perf_evlist__new_default(void);
 struct evlist *perf_evlist__new_dummy(void);
-void perf_evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus,
-                      struct perf_thread_map *threads);
+void evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus,
+                 struct perf_thread_map *threads);
 void perf_evlist__exit(struct evlist *evlist);
 void perf_evlist__delete(struct evlist *evlist);
 
index f6fe3c90828fe759d7e40c1f8a37dc851d3fccd7..ade4e85c6d8107dd4f5d723a8238381403c723c0 100644 (file)
@@ -873,7 +873,7 @@ static int pyrf_evlist__init(struct pyrf_evlist *pevlist,
 
        threads = ((struct pyrf_thread_map *)pthreads)->threads;
        cpus = ((struct pyrf_cpu_map *)pcpus)->cpus;
-       perf_evlist__init(&pevlist->evlist, cpus, threads);
+       evlist__init(&pevlist->evlist, cpus, threads);
        return 0;
 }