path: root/kernel/stacktrace.c
AgeCommit message (Collapse)AuthorLines
2014-12-13stacktrace: introduce snprint_stack_trace for buffer outputJoonsoo Kim-0/+32
Current stacktrace only have the function for console output. page_owner that will be introduced in following patch needs to print the output of stacktrace into the buffer for our own output format so so new function, snprint_stack_trace(), is needed. Signed-off-by: Joonsoo Kim <> Cc: Mel Gorman <> Cc: Johannes Weiner <> Cc: Minchan Kim <> Cc: Dave Hansen <> Cc: Michal Nazarewicz <> Cc: Jungsoo Son <> Cc: Ingo Molnar <> Cc: Joonsoo Kim <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2011-10-31kernel: Map most files to use export.h instead of module.hPaul Gortmaker-1/+1
The changed files were only including linux/module.h for the EXPORT_SYMBOL infrastructure, and nothing else. Revector them onto the isolated export header for faster compile times. Nothing to see here but a whole lot of instances of: -#include <linux/module.h> +#include <linux/export.h> This commit is only changing the kernel dir; next targets will probably be mm, fs, the arch dirs, etc. Signed-off-by: Paul Gortmaker <>
2011-06-14stack_trace: Add weak save_stack_trace_regs()Masami Hiramatsu-3/+9
Add weak symbol of save_stack_trace_regs() as same as save_stack_trace_tsk() since that is not implemented except x86 yet. Signed-off-by: Masami Hiramatsu <> Cc: Frederic Weisbecker <> Cc: Cc: Peter Zijlstra <> Cc: Namhyung Kim <> Link: Signed-off-by: Steven Rostedt <>
2008-12-25stacktrace: provide save_stack_trace_tsk() weak aliasIngo Molnar-0/+11
Impact: build fix Some architectures have not implemented save_stack_trace_tsk() yet: fs/built-in.o: In function `proc_pid_stack': base.c:(.text+0x3f140): undefined reference to `save_stack_trace_tsk' So warn about that if the facility is used. Signed-off-by: Ingo Molnar <>
2008-06-30stacktrace: fix modular build, export print_stack_trace and save_stack_traceIngo Molnar-0/+2
fix: ERROR: "print_stack_trace" [kernel/backtracetest.ko] undefined! ERROR: "save_stack_trace" [kernel/backtracetest.ko] undefined! Signed-off-by: Ingo Molnar <> and fix: Building modules, stage 2. MODPOST 376 modules ERROR: "print_stack_trace" [kernel/backtracetest.ko] undefined! make[1]: *** [__modpost] Error 1 Signed-off-by: Ingo Molnar <>
2008-06-13stacktrace: print_stack_trace() cleanupVegard Nossum-6/+3
- shorter code and better atomicity with regards to printk(). (It's been tested with the backtrace self-test code on i386 and x86_64.) Cc: Arjan van de Ven <> Signed-off-by: Vegard Nossum <> Signed-off-by: Ingo Molnar <>
2008-05-24stacktrace: don't crash on invalid stack trace structsJohannes Berg-0/+3
This patch makes the stacktrace printout code \warn when the entries pointer is unset rather than crashing when trying to access it in an attempt to make it a bit more robust. I was saving a stacktrace into an skb and forgot to copy it across skb copies... I have since fixed the code, but it would have been easier had the kernel not crashed in an interrupt. Signed-off-by: Johannes Berg <> Signed-off-by: Ingo Molnar <> Signed-off-by: Thomas Gleixner <>
2006-07-03[PATCH] lockdep: stacktrace subsystem, coreIngo Molnar-0/+24
Framework to generate and save stacktraces quickly, without printing anything to the console. Signed-off-by: Ingo Molnar <> Signed-off-by: Arjan van de Ven <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>