Skip to contentSkip to conversation

The ARM dwarf unwinder is missing some needed includes

PATCH New William Cohen 1 participant 2 messages Oct 8, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 The ARM dwarf unwinder is missing some needed includes

When the libunwind is available perf does not build on ARM machines because debug.h is not included in a couple files. The debug.h provides some needed defines.

---
 tools/perf/arch/arm/tests/dwarf-unwind.c    | 1 +
 tools/perf/arch/arm/util/unwind-libunwind.c | 1 +
 2 files changed, 2 insertions(+)
tools/perf/arch/arm/tests/dwarf-unwind.c +1 -0
index 9f870d2..62eff84 100644
@@ -3,6 +3,7 @@
 #include "thread.h"
 #include "map.h"
 #include "event.h"
+#include "debug.h"
 #include "tests/tests.h"
 
 #define STACK_SIZE 8192
tools/perf/arch/arm/util/unwind-libunwind.c +1 -0
index 729ed69..62c397e 100644
@@ -3,6 +3,7 @@
 #include <libunwind.h>
 #include "perf_regs.h"
 #include "../../util/unwind.h"
+#include "../../util/debug.h"
 
 int libunwind__arch_reg_id(int regnum)
 {
Signature · 1 line
1.9.3
#1 lore raw

PATCH 2/2 The arm64 dwarf unwinder is missing a needed include

When the libunwind is available perf does not build on arm64 machines because debug.h is not included. The debug.h provides some needed defines.

---
 tools/perf/arch/arm64/util/unwind-libunwind.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/arch/arm64/util/unwind-libunwind.c +1 -0
index 436ee43..a87afa9 100644
@@ -3,6 +3,7 @@
 #include <libunwind.h>
 #include "perf_regs.h"
 #include "../../util/unwind.h"
+#include "../../util/debug.h"
 
 int libunwind__arch_reg_id(int regnum)
 {
Signature · 1 line
1.9.3