aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r--tools/perf/util/scripting-engines/trace-event-python.c5
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
34PyMODINIT_FUNC initperf_trace_context(void); 35PyMODINIT_FUNC initperf_trace_context(void);
@@ -207,7 +208,7 @@ static inline struct event *find_cache_event(int type)
207static void python_process_event(union perf_event *pevent __unused, 208static 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;