perf scripting python: Add missing util/perf_regs.h include to get perf_reg_name...
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Oct 2022 20:33:04 +0000 (17:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 27 Oct 2022 19:37:26 +0000 (16:37 -0300)
It was getting it via event.h, that doesn't need that include anymore
and will drop it.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/scripting-engines/trace-event-python.c

index 7bc8559..1985d1a 100644 (file)
@@ -52,6 +52,7 @@
 #include "print_binary.h"
 #include "stat.h"
 #include "mem-events.h"
+#include "util/perf_regs.h"
 
 #if PY_MAJOR_VERSION < 3
 #define _PyUnicode_FromString(arg) \