libperf: Move the pollfd allocation from tools/perf to libperf
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Oct 2019 12:53:31 +0000 (14:53 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 10 Oct 2019 15:54:35 +0000 (12:54 -0300)
commit230662e15ed6cc63ecf72ed1bffa3cadef486850
tree6b55a75867bbf3b3bcd78d1c87b95f55bb591abc
parent285aaeac8c5d537b56b70169e21ac29ae5caa8e1
libperf: Move the pollfd allocation from tools/perf to libperf

It's needed in libperf only, so move it to the perf_evlist__mmap_ops()
function.

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