libperf: Add perf_evlist__add_pollfd() function
authorJiri Olsa <jolsa@kernel.org>
Fri, 16 Aug 2019 14:00:45 +0000 (16:00 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Sep 2019 12:51:49 +0000 (09:51 -0300)
commitf4009e7bf7ba3375cb00e33ca901d61a5acd6c2b
tree39c9d85deaa50b92880f4d0cc2f5ebdce2d2c286
parent31f67fc462a9e5df3b900924c2bf649c7bc63af8
libperf: Add perf_evlist__add_pollfd() function

Move perf_evlist__add_pollfd() from tools/perf to libperf, it will be
used in the following patches.

Also rename perf's perf_evlist__add_pollfd()/perf_evlist__filter_pollfd()
to evlist__add_pollfd()/evlist__filter_pollfd().

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 <a.p.zijlstra@chello.nl>
Link: http://lore.kernel.org/lkml/20190913132355.21634-38-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c
tools/perf/builtin-record.c
tools/perf/builtin-trace.c
tools/perf/lib/evlist.c
tools/perf/lib/include/internal/evlist.h
tools/perf/util/evlist.c
tools/perf/util/evlist.h