/arch/microblaze/kernel/ |
H A D | stacktrace.c | 2 * Stack trace support for Microblaze. 19 void save_stack_trace(struct stack_trace *trace) argument 21 /* Exclude our helper functions from the trace*/ 22 trace->skip += 2; 23 microblaze_unwind(NULL, trace); 27 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument 29 microblaze_unwind(tsk, trace);
|
H A D | unwind.c | 156 struct stack_trace *trace); 164 unsigned long fp, struct stack_trace *trace) 170 unsigned long fp, struct stack_trace *trace) 173 microblaze_unwind_inner(task, regs->pc, regs->r1, regs->r15, trace); 184 * @trace : Where to store stack backtrace (PC values). 190 struct stack_trace *trace) 220 regs->r15, trace); 229 if (!trace) 231 unwind_trap(task, pc, fp, trace); 237 if (trace) { 163 unwind_trap(struct task_struct *task, unsigned long pc, unsigned long fp, struct stack_trace *trace) argument 169 unwind_trap(struct task_struct *task, unsigned long pc, unsigned long fp, struct stack_trace *trace) argument 187 microblaze_unwind_inner(struct task_struct *task, unsigned long pc, unsigned long fp, unsigned long leaf_return, struct stack_trace *trace) argument 285 microblaze_unwind(struct task_struct *task, struct stack_trace *trace) argument 301 cpu_context->r15, trace); local [all...] |
H A D | ftrace.c | 26 struct ftrace_graph_ent trace; local 63 err = ftrace_push_return_trace(old, self_addr, &trace.depth, 0); 69 trace.func = self_addr; 70 /* Only trace if the calling function expects to */ 71 if (!ftrace_graph_entry(&trace)) {
|
/arch/ia64/kernel/ |
H A D | stacktrace.c | 4 * Stack trace management functions 14 struct stack_trace *trace = arg; local 16 int skip = trace->skip; 18 trace->nr_entries = 0; 24 trace->entries[trace->nr_entries++] = ip; 25 if (trace->nr_entries == trace->max_entries) 35 void save_stack_trace(struct stack_trace *trace) argument 37 unw_init_running(ia64_do_save_stack, trace); [all...] |
/arch/avr32/kernel/ |
H A D | stacktrace.c | 2 * Stack trace management functions 25 void save_stack_trace(struct stack_trace *trace) argument 30 int skip = trace->skip; 42 trace->entries[trace->nr_entries++] = frame->lr; 43 if (trace->nr_entries >= trace->max_entries)
|
/arch/blackfin/kernel/ |
H A D | stacktrace.c | 23 void save_stack_trace(struct stack_trace *trace) argument 28 int skip = trace->skip; 40 trace->entries[trace->nr_entries++] = frame->rets; 41 if (trace->nr_entries >= trace->max_entries)
|
H A D | ftrace.c | 106 struct ftrace_graph_ent trace; local 112 if (ftrace_push_return_trace(*parent, self_addr, &trace.depth, 116 trace.func = self_addr; 118 /* Only trace if the calling function expects to */ 119 if (!ftrace_graph_entry(&trace)) {
|
/arch/hexagon/kernel/ |
H A D | stacktrace.c | 36 void save_stack_trace(struct stack_trace *trace) argument 41 int skip = trace->skip; 53 trace->entries[trace->nr_entries++] = frame->rets; 54 if (trace->nr_entries >= trace->max_entries)
|
/arch/parisc/kernel/ |
H A D | stacktrace.c | 2 * Stack trace management functions 15 static void dump_trace(struct task_struct *task, struct stack_trace *trace) argument 35 trace->nr_entries = 0; 36 while (trace->nr_entries < trace->max_entries) { 41 trace->entries[trace->nr_entries++] = info.ip; 49 void save_stack_trace(struct stack_trace *trace) argument 51 dump_trace(current, trace); 52 if (trace 57 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument [all...] |
H A D | ftrace.c | 23 /* Add a function return address to the trace stack on thread info.*/ 32 /* The return trace stack is full */ 48 /* Retrieve a function return address to the trace stack on thread info.*/ 49 static void pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret) argument 65 trace->func = current->ret_stack[index].func; 66 trace->calltime = current->ret_stack[index].calltime; 67 trace->overrun = atomic_read(¤t->trace_overrun); 68 trace->depth = index; 75 * Send the trace to the ring-buffer. 81 struct ftrace_graph_ret trace; local 113 struct ftrace_graph_ent trace; local [all...] |
/arch/powerpc/kernel/ |
H A D | stacktrace.c | 2 * Stack trace utility 22 static void save_context_stack(struct stack_trace *trace, unsigned long sp, argument 36 if (!trace->skip) 37 trace->entries[trace->nr_entries++] = ip; 39 trace->skip--; 42 if (trace->nr_entries >= trace->max_entries) 49 void save_stack_trace(struct stack_trace *trace) argument 55 save_context_stack(trace, s 59 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument [all...] |
H A D | ftrace.c | 202 * If a task was preempted when calling a trace function, 543 struct ftrace_graph_ent trace; local 590 if (ftrace_push_return_trace(old, self_addr, &trace.depth, 0) == -EBUSY) { 595 trace.func = self_addr; 597 /* Only trace if the calling function expects to */ 598 if (!ftrace_graph_entry(&trace)) {
|
/arch/mips/kernel/ |
H A D | stacktrace.c | 2 * Stack trace management functions 14 static void save_raw_context_stack(struct stack_trace *trace, argument 23 if (trace->skip > 0) 24 trace->skip--; 26 trace->entries[trace->nr_entries++] = addr; 27 if (trace->nr_entries >= trace->max_entries) 33 static void save_context_stack(struct stack_trace *trace, argument 46 save_raw_context_stack(trace, s 66 save_stack_trace(struct stack_trace *trace) argument 72 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument [all...] |
H A D | ftrace.c | 32 * init_kernel_text() for Ftrace doesn't trace functions in init sections. 259 struct ftrace_graph_ent trace; local 303 if (ftrace_push_return_trace(old_parent_ra, self_ra, &trace.depth, fp) 316 trace.func = self_ra - (MCOUNT_INSN_SIZE * insns); 318 /* Only trace if the calling function expects to */ 319 if (!ftrace_graph_entry(&trace)) {
|
/arch/s390/kernel/ |
H A D | stacktrace.c | 4 * Stack trace management functions 15 static unsigned long save_context_stack(struct stack_trace *trace, argument 32 if (!trace->skip) 33 trace->entries[trace->nr_entries++] = addr; 35 trace->skip--; 36 if (trace->nr_entries >= trace->max_entries) 53 if (!trace->skip) 54 trace 65 save_stack_trace(struct stack_trace *trace) argument 87 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument [all...] |
H A D | ftrace.c | 16 #include <trace/syscall.h> 154 struct ftrace_graph_ent trace; local 158 if (ftrace_push_return_trace(parent, ip, &trace.depth, 0) == -EBUSY) 160 trace.func = (ip & PSW_ADDR_INSN) - MCOUNT_OFFSET_RET; 161 /* Only trace if the calling function expects to. */ 162 if (!ftrace_graph_entry(&trace)) {
|
/arch/sh/kernel/ |
H A D | stacktrace.c | 4 * Stack trace management functions 30 struct stack_trace *trace = data; local 35 if (trace->skip > 0) { 36 trace->skip--; 40 if (trace->nr_entries < trace->max_entries) 41 trace->entries[trace->nr_entries++] = addr; 49 void save_stack_trace(struct stack_trace *trace) argument 53 unwind_stack(current, NULL, sp, &save_stack_ops, trace); 62 struct stack_trace *trace = (struct stack_trace *)data; local 84 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument [all...] |
H A D | ftrace.c | 23 #include <trace/syscall.h> 347 struct ftrace_graph_ent trace; local 387 err = ftrace_push_return_trace(old, self_addr, &trace.depth, 0); 393 trace.func = self_addr; 395 /* Only trace if the calling function expects to */ 396 if (!ftrace_graph_entry(&trace)) {
|
/arch/sparc/kernel/ |
H A D | stacktrace.c | 12 struct stack_trace *trace, 53 if (trace->skip > 0) 54 trace->skip--; 56 trace->entries[trace->nr_entries++] = pc; 62 if (trace->nr_entries < 63 trace->max_entries) 64 trace->entries[trace->nr_entries++] = pc; 70 } while (trace 11 __save_stack_trace(struct thread_info *tp, struct stack_trace *trace, bool skip_sched) argument 73 save_stack_trace(struct stack_trace *trace) argument 75 __save_stack_trace(current_thread_info(), trace, false); local 79 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument [all...] |
H A D | ftrace.c | 7 #include <trace/syscall.h> 132 struct ftrace_graph_ent trace; local 137 if (ftrace_push_return_trace(parent, self_addr, &trace.depth, 141 trace.func = self_addr; 143 /* Only trace if the calling function expects to */ 144 if (!ftrace_graph_entry(&trace)) {
|
/arch/arm/kernel/ |
H A D | stacktrace.c | 63 struct stack_trace *trace; member in struct:stack_trace_data 71 struct stack_trace *trace = data->trace; local 81 trace->entries[trace->nr_entries++] = addr; 83 return trace->nr_entries >= trace->max_entries; 86 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument 91 data.trace = trace; 126 save_stack_trace(struct stack_trace *trace) argument [all...] |
H A D | ftrace.c | 187 struct ftrace_graph_ent trace; local 197 trace.func = self_addr; 198 trace.depth = current->curr_ret_stack + 1; 200 /* Only trace if the calling function expects to */ 201 if (!ftrace_graph_entry(&trace)) { 206 err = ftrace_push_return_trace(old, self_addr, &trace.depth,
|
/arch/unicore32/kernel/ |
H A D | stacktrace.c | 74 struct stack_trace *trace; member in struct:stack_trace_data 82 struct stack_trace *trace = data->trace; local 92 trace->entries[trace->nr_entries++] = addr; 94 return trace->nr_entries >= trace->max_entries; 97 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument 102 data.trace = trace; 126 save_stack_trace(struct stack_trace *trace) argument [all...] |
/arch/x86/kernel/ |
H A D | stacktrace.c | 2 * Stack trace management functions 20 struct stack_trace *trace = data; local 27 if (trace->skip > 0) { 28 trace->skip--; 31 if (trace->nr_entries < trace->max_entries) 32 trace->entries[trace->nr_entries++] = addr; 61 void save_stack_trace(struct stack_trace *trace) argument 63 dump_trace(current, NULL, NULL, 0, &save_stack_ops, trace); 69 save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) argument 76 save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) argument 108 __save_stack_trace_user(struct stack_trace *trace) argument 135 save_stack_trace_user(struct stack_trace *trace) argument [all...] |
/arch/x86/mm/kmemcheck/ |
H A D | error.c | 35 struct stack_trace trace; member in struct:kmemcheck_error 136 print_stack_trace(&e->trace, 0); 183 /* Save stack trace */ 184 e->trace.nr_entries = 0; 185 e->trace.entries = e->trace_entries; 186 e->trace.max_entries = ARRAY_SIZE(e->trace_entries); 187 e->trace.skip = 0; 188 save_stack_trace_regs(regs, &e->trace); 220 e->trace.nr_entries = 0; 221 e->trace [all...] |