[PATCH 06/12] mips: add a stub for stack unwind
Marcin Nowakowski
marcin.nowakowski@imgtec.com
Tue Oct 11 08:15:00 GMT 2016
This change adds a stub for processing stack unwind - this does not do
proper stack printing, but is enough to let the generated code compile
and run
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
---
runtime/stack-mips.c | 4 ++++
runtime/stack.c | 2 ++
2 files changed, 6 insertions(+)
create mode 100644 runtime/stack-mips.c
diff --git a/runtime/stack-mips.c b/runtime/stack-mips.c
new file mode 100644
index 0000000..fde8a1a
--- /dev/null
+++ b/runtime/stack-mips.c
@@ -0,0 +1,4 @@
+static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
+{
+ /* TODO: fix, it is just stub for now */
+}
diff --git a/runtime/stack.c b/runtime/stack.c
index a99bad0..7f72d89 100644
--- a/runtime/stack.c
+++ b/runtime/stack.c
@@ -78,6 +78,8 @@ static int _stp_valid_pc_addr(unsigned long addr, struct task_struct *tsk)
#include "stack-ia64.c"
#elif defined (__arm__)
#include "stack-arm.c"
+#elif defined (__mips__)
+#include "stack-mips.c"
#elif defined (__s390__)
#include "stack-s390.c"
#else
--
2.7.4
More information about the Systemtap
mailing list