aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/lib/libperf.map
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2019-10-07 14:53:21 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-10-10 12:15:58 -0300
commitd1a177595b3a824c72dacb0f9d1a4e5906eaef0e (patch)
treebc1e23a5dbb635b70bfa57cd7bc8af91d2f9914d /tools/perf/lib/libperf.map
parentlibperf: Adopt perf_mmap__read_event() from tools/perf (diff)
downloadlinux-dev-d1a177595b3a824c72dacb0f9d1a4e5906eaef0e.tar.xz
linux-dev-d1a177595b3a824c72dacb0f9d1a4e5906eaef0e.zip
libperf: Adopt perf_evlist__mmap()/munmap() from tools/perf
Add libperf's version of perf_evlist__mmap()/munmap() functions and exporting them in the perf/evlist.h header. It's the backbone of what we have in perf code. The following changes will add needed callbacks and then we'll finally switch the perf code to use libperf's version. Add mmap/mmap_ovw 'struct perf_mmap' object arrays to hold maps for libperf's evlist. 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 <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20191007125344.14268-14-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to '')
-rw-r--r--tools/perf/lib/libperf.map2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/lib/libperf.map b/tools/perf/lib/libperf.map
index 8bb0d73e0c6c..5a18fd1aacf2 100644
--- a/tools/perf/lib/libperf.map
+++ b/tools/perf/lib/libperf.map
@@ -40,6 +40,8 @@ LIBPERF_0.0.1 {
perf_evlist__next;
perf_evlist__set_maps;
perf_evlist__poll;
+ perf_evlist__mmap;
+ perf_evlist__munmap;
perf_mmap__consume;
perf_mmap__read_init;
perf_mmap__read_done;