This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH 06/12] mips: add a stub for stack unwind
- From: Marcin Nowakowski <marcin dot nowakowski at imgtec dot com>
- To: <systemtap at sourceware dot org>
- Cc: Marcin Nowakowski <marcin dot nowakowski at imgtec dot com>
- Date: Tue, 11 Oct 2016 10:14:22 +0200
- Subject: [PATCH 06/12] mips: add a stub for stack unwind
- Authentication-results: sourceware.org; auth=none
- References: <1476173668-30787-1-git-send-email-marcin.nowakowski@imgtec.com>
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