libperf: Introduce perf_evlist__mmap_ops()
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Oct 2019 12:53:22 +0000 (14:53 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Oct 2019 15:18:00 +0000 (12:18 -0300)
commit0b5ea10d4c312f5b17af9d09187efb9418517bec
treefd1e8fbeb7caaca2d3bd22d6a15bc6db150077ba
parentd1a177595b3a824c72dacb0f9d1a4e5906eaef0e
libperf: Introduce perf_evlist__mmap_ops()

To be able to pass specific callbacks to evlist's mmap.

There will be a specific call to this function from perf's
evlist__mmap() and libperf's perf_evlist__mmap() functions in following
changes.

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