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 e0203b979474..089438da1f7f 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <stdbool.h> | 27 | #include <stdbool.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <linux/bitmap.h> | 29 | #include <linux/bitmap.h> |
30 | #include <linux/time64.h> | ||
30 | 31 | ||
31 | #include "../../perf.h" | 32 | #include "../../perf.h" |
32 | #include "../debug.h" | 33 | #include "../debug.h" |
@@ -426,8 +427,8 @@ static void python_process_tracepoint(struct perf_sample *sample, | |||
426 | if (!dict) | 427 | if (!dict) |
427 | Py_FatalError("couldn't create Python dict"); | 428 | Py_FatalError("couldn't create Python dict"); |
428 | } | 429 | } |
429 | s = nsecs / NSECS_PER_SEC; | 430 | s = nsecs / NSEC_PER_SEC; |
430 | ns = nsecs - s * NSECS_PER_SEC; | 431 | ns = nsecs - s * NSEC_PER_SEC; |
431 | 432 | ||
432 | scripting_context->event_data = data; | 433 | scripting_context->event_data = data; |
433 | scripting_context->pevent = evsel->tp_format->pevent; | 434 | scripting_context->pevent = evsel->tp_format->pevent; |