libperf: Adopt perf_mmap__get() function from tools/perf
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Oct 2019 12:53:13 +0000 (14:53 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Oct 2019 12:53:27 +0000 (09:53 -0300)
commite75710f063e29ae7715c57b45eb27c2d504b32ca
tree13686f4ca059ec24dae9b2ac302d56e3c6573ff7
parent32c261c070c222858148c2171698d2954242ddd9
libperf: Adopt perf_mmap__get() function from tools/perf

Move perf_mmap__get() from tools/perf to libperf in the internal header
internal/mmap.h.

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-6-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/lib/include/internal/mmap.h
tools/perf/lib/mmap.c
tools/perf/util/evlist.c
tools/perf/util/mmap.c
tools/perf/util/mmap.h