Lines Matching full:trace
3 * Stack trace management functions
17 static void save_raw_context_stack(struct stack_trace *trace, in save_raw_context_stack() argument
27 if (trace->skip > 0) in save_raw_context_stack()
28 trace->skip--; in save_raw_context_stack()
30 trace->entries[trace->nr_entries++] = addr; in save_raw_context_stack()
31 if (trace->nr_entries >= trace->max_entries) in save_raw_context_stack()
37 static void save_context_stack(struct stack_trace *trace, in save_context_stack() argument
50 save_raw_context_stack(trace, sp, savesched); in save_context_stack()
55 if (trace->skip > 0) in save_context_stack()
56 trace->skip--; in save_context_stack()
58 trace->entries[trace->nr_entries++] = pc; in save_context_stack()
59 if (trace->nr_entries >= trace->max_entries) in save_context_stack()
65 save_raw_context_stack(trace, sp, savesched); in save_context_stack()
72 void save_stack_trace(struct stack_trace *trace) in save_stack_trace() argument
74 save_stack_trace_tsk(current, trace); in save_stack_trace()
78 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
83 WARN_ON(trace->nr_entries || !trace->max_entries); in save_stack_trace_tsk()
91 save_context_stack(trace, tsk, regs, tsk == current); in save_stack_trace_tsk()