diff options
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 6ccf70e8d8f2..c2623c6f9b51 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -24,11 +24,12 @@ | |||
24 | #include <stdio.h> | 24 | #include <stdio.h> |
25 | #include <stdlib.h> | 25 | #include <stdlib.h> |
26 | #include <string.h> | 26 | #include <string.h> |
27 | #include <ctype.h> | ||
28 | #include <errno.h> | 27 | #include <errno.h> |
29 | 28 | ||
30 | #include "../../perf.h" | 29 | #include "../../perf.h" |
31 | #include "../util.h" | 30 | #include "../util.h" |
31 | #include "../event.h" | ||
32 | #include "../thread.h" | ||
32 | #include "../trace-event.h" | 33 | #include "../trace-event.h" |
33 | 34 | ||
34 | PyMODINIT_FUNC initperf_trace_context(void); | 35 | PyMODINIT_FUNC initperf_trace_context(void); |
@@ -207,7 +208,7 @@ static inline struct event *find_cache_event(int type) | |||
207 | static void python_process_event(union perf_event *pevent __unused, | 208 | static void python_process_event(union perf_event *pevent __unused, |
208 | struct perf_sample *sample, | 209 | struct perf_sample *sample, |
209 | struct perf_evsel *evsel __unused, | 210 | struct perf_evsel *evsel __unused, |
210 | struct perf_session *session __unused, | 211 | struct machine *machine __unused, |
211 | struct thread *thread) | 212 | struct thread *thread) |
212 | { | 213 | { |
213 | PyObject *handler, *retval, *context, *t, *obj, *dict = NULL; | 214 | PyObject *handler, *retval, *context, *t, *obj, *dict = NULL; |