libperf: Move 'pollfd' from 'struct evlist' to 'struct perf_evlist'
Moving 'pollfd' from 'struct evlist' to 'struct perf_evlist' it will be used in following patches. 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-23-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
f6fa437577
commit
40cb2d5141
@@ -935,17 +935,17 @@ static PyObject *pyrf_evlist__get_pollfd(struct pyrf_evlist *pevlist,
|
||||
PyObject *list = PyList_New(0);
|
||||
int i;
|
||||
|
||||
for (i = 0; i < evlist->pollfd.nr; ++i) {
|
||||
for (i = 0; i < evlist->core.pollfd.nr; ++i) {
|
||||
PyObject *file;
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
FILE *fp = fdopen(evlist->pollfd.entries[i].fd, "r");
|
||||
FILE *fp = fdopen(evlist->core.pollfd.entries[i].fd, "r");
|
||||
|
||||
if (fp == NULL)
|
||||
goto free_list;
|
||||
|
||||
file = PyFile_FromFile(fp, "perf", "r", NULL);
|
||||
#else
|
||||
file = PyFile_FromFd(evlist->pollfd.entries[i].fd, "perf", "r", -1,
|
||||
file = PyFile_FromFd(evlist->core.pollfd.entries[i].fd, "perf", "r", -1,
|
||||
NULL, NULL, NULL, 0);
|
||||
#endif
|
||||
if (file == NULL)
|
||||
|
Reference in New Issue
Block a user