| * arch/ia64/kernel/stacktrace.c |
| * Stack trace management functions |
| #include <linux/stacktrace.h> |
| #include <linux/module.h> |
| ia64_do_save_stack(struct unw_frame_info *info, void *arg) |
| struct stack_trace *trace = arg; |
| trace->entries[trace->nr_entries++] = ip; |
| if (trace->nr_entries == trace->max_entries) |
| } while (unw_unwind(info) >= 0); |
| * Save stack-backtrace addresses into a stack_trace buffer. |
| void save_stack_trace(struct stack_trace *trace) |
| unw_init_running(ia64_do_save_stack, trace); |
| EXPORT_SYMBOL(save_stack_trace); |