aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/python.c')
-rw-r--r--tools/perf/util/python.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
index 50150dfc0cdf..dda0ac978b1e 100644
--- a/tools/perf/util/python.c
+++ b/tools/perf/util/python.c
@@ -386,7 +386,7 @@ get_tracepoint_field(struct pyrf_event *pevent, PyObject *attr_name)
386 struct tep_format_field *field; 386 struct tep_format_field *field;
387 387
388 if (!evsel->tp_format) { 388 if (!evsel->tp_format) {
389 struct tep_event_format *tp_format; 389 struct tep_event *tp_format;
390 390
391 tp_format = trace_event__tp_format_id(evsel->attr.config); 391 tp_format = trace_event__tp_format_id(evsel->attr.config);
392 if (!tp_format) 392 if (!tp_format)
@@ -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;
@@ -1240,7 +1241,7 @@ static struct {
1240static PyObject *pyrf__tracepoint(struct pyrf_evsel *pevsel, 1241static PyObject *pyrf__tracepoint(struct pyrf_evsel *pevsel,
1241 PyObject *args, PyObject *kwargs) 1242 PyObject *args, PyObject *kwargs)
1242{ 1243{
1243 struct tep_event_format *tp_format; 1244 struct tep_event *tp_format;
1244 static char *kwlist[] = { "sys", "name", NULL }; 1245 static char *kwlist[] = { "sys", "name", NULL };
1245 char *sys = NULL; 1246 char *sys = NULL;
1246 char *name = NULL; 1247 char *name = NULL;