The ARM dwarf unwinder is missing some needed includes
Subsystems (2)
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.
Signed-off-by William Cohen <[email protected]>
--- 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
@@ -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
@@ -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
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.
Signed-off-by William Cohen <[email protected]>
--- tools/perf/arch/arm64/util/unwind-libunwind.c | 1 + 1 file changed, 1 insertion(+)
tools/perf/arch/arm64/util/unwind-libunwind.c +1 -0
@@ -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