unwind.h (e98bdb3059cbf2b1cd4261e126b08429f64466c3) | unwind.h (af085d9084b48530153f51e6cad19fd0b1a13ed7) |
---|---|
1#ifndef _ASM_X86_UNWIND_H 2#define _ASM_X86_UNWIND_H 3 4#include <linux/sched.h> 5#include <linux/ftrace.h> 6#include <asm/ptrace.h> 7#include <asm/stacktrace.h> 8 9struct unwind_state { 10 struct stack_info stack_info; 11 unsigned long stack_mask; 12 struct task_struct *task; 13 int graph_idx; | 1#ifndef _ASM_X86_UNWIND_H 2#define _ASM_X86_UNWIND_H 3 4#include <linux/sched.h> 5#include <linux/ftrace.h> 6#include <asm/ptrace.h> 7#include <asm/stacktrace.h> 8 9struct unwind_state { 10 struct stack_info stack_info; 11 unsigned long stack_mask; 12 struct task_struct *task; 13 int graph_idx; |
14 bool error; |
|
14#ifdef CONFIG_FRAME_POINTER 15 unsigned long *bp, *orig_sp; 16 struct pt_regs *regs; 17#else 18 unsigned long *sp; 19#endif 20}; 21 --- 13 unchanged lines hidden (view full) --- 35void unwind_start(struct unwind_state *state, struct task_struct *task, 36 struct pt_regs *regs, unsigned long *first_frame) 37{ 38 first_frame = first_frame ? : get_stack_pointer(task, regs); 39 40 __unwind_start(state, task, regs, first_frame); 41} 42 | 15#ifdef CONFIG_FRAME_POINTER 16 unsigned long *bp, *orig_sp; 17 struct pt_regs *regs; 18#else 19 unsigned long *sp; 20#endif 21}; 22 --- 13 unchanged lines hidden (view full) --- 36void unwind_start(struct unwind_state *state, struct task_struct *task, 37 struct pt_regs *regs, unsigned long *first_frame) 38{ 39 first_frame = first_frame ? : get_stack_pointer(task, regs); 40 41 __unwind_start(state, task, regs, first_frame); 42} 43 |
44static inline bool unwind_error(struct unwind_state *state) 45{ 46 return state->error; 47} 48 |
|
43#ifdef CONFIG_FRAME_POINTER 44 45static inline 46unsigned long *unwind_get_return_address_ptr(struct unwind_state *state) 47{ 48 if (unwind_done(state)) 49 return NULL; 50 --- 27 unchanged lines hidden --- | 49#ifdef CONFIG_FRAME_POINTER 50 51static inline 52unsigned long *unwind_get_return_address_ptr(struct unwind_state *state) 53{ 54 if (unwind_done(state)) 55 return NULL; 56 --- 27 unchanged lines hidden --- |