diff options
Diffstat (limited to 'tools/perf/util/python.c')
| -rw-r--r-- | tools/perf/util/python.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index 47628e85c5eb..dda0ac978b1e 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c | |||
| @@ -939,7 +939,8 @@ static PyObject *pyrf_evlist__get_pollfd(struct pyrf_evlist *pevlist, | |||
| 939 | 939 | ||
| 940 | file = PyFile_FromFile(fp, "perf", "r", NULL); | 940 | file = PyFile_FromFile(fp, "perf", "r", NULL); |
| 941 | #else | 941 | #else |
| 942 | file = PyFile_FromFd(evlist->pollfd.entries[i].fd, "perf", "r", -1, NULL, NULL, NULL, 1); | 942 | file = PyFile_FromFd(evlist->pollfd.entries[i].fd, "perf", "r", -1, |
| 943 | NULL, NULL, NULL, 0); | ||
| 943 | #endif | 944 | #endif |
| 944 | if (file == NULL) | 945 | if (file == NULL) |
| 945 | goto free_list; | 946 | goto free_list; |
