summaryrefslogtreecommitdiff
path: root/arch/cris/include/asm
diff options
context:
space:
mode:
authorRabin Vincent <rabin@rab.in>2015-05-14 18:19:03 +0200
committerJesper Nilsson <jespern@axis.com>2015-09-05 00:56:50 +0200
commitaa6f4d2b6547a9949d87c9b09a872a7015366588 (patch)
tree6efb66f528d045e050b21889c31937b5b4bbadf6 /arch/cris/include/asm
parent3fffa23ee0a348aef1b597b67626d4724667143b (diff)
downloadlinux-aa6f4d2b6547a9949d87c9b09a872a7015366588.tar.gz
CRIS: add STACKTRACE_SUPPORT
Add stacktrace support, which is required for lockdep and tracing. The stack tracing simply looks at all kernel text symbols found on the stack, similar to the trap stack dumping code, which can also be converted to use this. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/include/asm')
-rw-r--r--arch/cris/include/asm/stacktrace.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/cris/include/asm/stacktrace.h b/arch/cris/include/asm/stacktrace.h
new file mode 100644
index 000000000000..2d90856943ad
--- /dev/null
+++ b/arch/cris/include/asm/stacktrace.h
@@ -0,0 +1,8 @@
+#ifndef __CRIS_STACKTRACE_H
+#define __CRIS_STACKTRACE_H
+
+void walk_stackframe(unsigned long sp,
+ int (*fn)(unsigned long addr, void *data),
+ void *data);
+
+#endif