libperf: Add perf_evlist__poll() function
Move perf_evlist__poll() from tools/perf to libperf, it will be used in the following patches. And rename the existing perf's function to evlist__poll(). 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-39-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
f4009e7bf7
commit
80ab2987a0
@@ -144,7 +144,7 @@ perf_evlist__find_tracepoint_by_name(struct evlist *evlist,
|
||||
int evlist__add_pollfd(struct evlist *evlist, int fd);
|
||||
int evlist__filter_pollfd(struct evlist *evlist, short revents_and_mask);
|
||||
|
||||
int perf_evlist__poll(struct evlist *evlist, int timeout);
|
||||
int evlist__poll(struct evlist *evlist, int timeout);
|
||||
|
||||
struct evsel *perf_evlist__id2evsel(struct evlist *evlist, u64 id);
|
||||
struct evsel *perf_evlist__id2evsel_strict(struct evlist *evlist,
|
||||
|
Reference in New Issue
Block a user