perf evlist: Introduce perf_evlist__mmap_cb_get()
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Oct 2019 12:53:27 +0000 (14:53 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Oct 2019 15:30:21 +0000 (12:30 -0300)
commitbb1b1885e2f22afb8bc7981cd865fe4b0e3d975b
treebc5534d27cf3b8d073aed352ac6bb45386788dc8
parent9abd2ab2377613425e1c362694f85b110f5bace2
perf evlist: Introduce perf_evlist__mmap_cb_get()

Add the perf_evlist__mmap_cb_get() function to return 'struct perf_mmap'
object during perf_evlist__mmap_ops() call.

The array of 'struct mmap' is allocated via evlist__alloc_mmap(), in
this callback we simply returns pointer to the base object.

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-20-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c