libperf: Do not export perf_evsel__init()/perf_evlist__init()
authorJiri Olsa <jolsa@kernel.org>
Thu, 17 Oct 2019 10:59:17 +0000 (12:59 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 19 Oct 2019 18:35:01 +0000 (15:35 -0300)
There's no point in exporting perf_evsel__init()/perf_evlist__init(),
it's called from perf_evsel__new()/perf_evlist__new() respectively.

It's used only from perf where perf_evsel()/perf_evlist() is embedded
perf's evsel/evlist.

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: Jin Yao <yao.jin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20191017105918.20873-10-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/lib/include/internal/evlist.h
tools/perf/lib/include/internal/evsel.h
tools/perf/lib/include/perf/evlist.h
tools/perf/lib/include/perf/evsel.h
tools/perf/lib/libperf.map

index 20d90e29fc0eb07908a8b0740a916e0187fa0fc8..a2fbccf1922f2894e8380234c740afe0952dfd20 100644 (file)
@@ -50,6 +50,7 @@ int perf_evlist__mmap_ops(struct perf_evlist *evlist,
                          struct perf_evlist_mmap_ops *ops,
                          struct perf_mmap_param *mp);
 
+void perf_evlist__init(struct perf_evlist *evlist);
 void perf_evlist__exit(struct perf_evlist *evlist);
 
 /**
index a69b8299c36f9696f476a210eaa5bc1d9e52d803..1ffd083b235eb21b4f815b53c062710716f9035c 100644 (file)
@@ -50,6 +50,7 @@ struct perf_evsel {
        bool                     system_wide;
 };
 
+void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr);
 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
 void perf_evsel__close_fd(struct perf_evsel *evsel);
 void perf_evsel__free_fd(struct perf_evsel *evsel);
index 8c4b3c28535ef8b78c9d956a956f3a9c6a8d279a..0a7479dc13bf38b5831e618e79f73785e3ddb881 100644 (file)
@@ -10,7 +10,6 @@ struct perf_evsel;
 struct perf_cpu_map;
 struct perf_thread_map;
 
-LIBPERF_API void perf_evlist__init(struct perf_evlist *evlist);
 LIBPERF_API void perf_evlist__add(struct perf_evlist *evlist,
                                  struct perf_evsel *evsel);
 LIBPERF_API void perf_evlist__remove(struct perf_evlist *evlist,
index 4388667f265ce10f3791182a250aff57da8758e6..557f5815a9c968b21ed3c53e89cde7ccee435555 100644 (file)
@@ -21,8 +21,6 @@ struct perf_counts_values {
        };
 };
 
-LIBPERF_API void perf_evsel__init(struct perf_evsel *evsel,
-                                 struct perf_event_attr *attr);
 LIBPERF_API struct perf_evsel *perf_evsel__new(struct perf_event_attr *attr);
 LIBPERF_API void perf_evsel__delete(struct perf_evsel *evsel);
 LIBPERF_API int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus,
index 8be02afc324b369080c58949e0129dd6b732d1a1..7be1af8a546c049e8f89f1e9e77f7324bef243ea 100644 (file)
@@ -21,7 +21,6 @@ LIBPERF_0.0.1 {
                perf_evsel__delete;
                perf_evsel__enable;
                perf_evsel__disable;
-               perf_evsel__init;
                perf_evsel__open;
                perf_evsel__close;
                perf_evsel__read;
@@ -34,7 +33,6 @@ LIBPERF_0.0.1 {
                perf_evlist__close;
                perf_evlist__enable;
                perf_evlist__disable;
-               perf_evlist__init;
                perf_evlist__add;
                perf_evlist__remove;
                perf_evlist__next;