libperf: Add perf_mmap__init() function
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Oct 2019 12:53:09 +0000 (14:53 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Oct 2019 12:37:25 +0000 (09:37 -0300)
commit353120b48d4f61288e4745b0c8a191784b11c0f4
treee0a8eb3397403227f4634cd7c29bb78dac87133e
parent26d5310ee28ad9395bd676f750d2ee3ddff3dcfd
libperf: Add perf_mmap__init() function

Add perf_mmap__init() function to initialize 'struct perf_mmap' objects.

Add it to a new mmap.c source file, that will carry all the mmap related
functions.

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-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/lib/Build
tools/perf/lib/include/internal/mmap.h
tools/perf/lib/mmap.c [new file with mode: 0644]
tools/perf/util/evlist.c