Lines Matching full:stack
40 * On 64-bit, we have a generic entry stack that we in stack_type_name()
55 * @offs: Offset from the start of the exception stack area
56 * @size: Size of the exception stack
73 * Array of exception stack page descriptors. If the stack is larger than
74 * PAGE_SIZE, all pages covering a particular stack will have the same
75 * info. The guard pages including the not mapped DB2 stack are zeroed
88 static __always_inline bool in_exception_stack(unsigned long *stack, struct stack_info *info) in in_exception_stack() argument
90 unsigned long begin, end, stk = (unsigned long)stack; in in_exception_stack()
99 * Handle the case where stack trace is collected _before_ in in_exception_stack()
106 /* Bail if @stack is outside the exception stack area. */ in in_exception_stack()
129 static __always_inline bool in_irq_stack(unsigned long *stack, struct stack_info *info) in in_irq_stack() argument
135 * This is a software stack, so 'end' can be a valid stack pointer. in in_irq_stack()
136 * It just means the stack is empty. in in_irq_stack()
138 if (stack < begin || stack >= end) in in_irq_stack()
146 * The next stack pointer is the first thing pushed by the entry code in in_irq_stack()
147 * after switching to the irq stack. in in_irq_stack()
154 bool noinstr get_stack_info_noinstr(unsigned long *stack, struct task_struct *task, in get_stack_info_noinstr() argument
157 if (in_task_stack(stack, task, info)) in get_stack_info_noinstr()
163 if (in_exception_stack(stack, info)) in get_stack_info_noinstr()
166 if (in_irq_stack(stack, info)) in get_stack_info_noinstr()
169 if (in_entry_stack(stack, info)) in get_stack_info_noinstr()
175 int get_stack_info(unsigned long *stack, struct task_struct *task, in get_stack_info() argument
180 if (!stack) in get_stack_info()
183 if (!get_stack_info_noinstr(stack, task, info)) in get_stack_info()
187 * Make sure we don't iterate through any given stack more than once. in get_stack_info()
189 * just break out and report an unknown stack type. in get_stack_info()
194 printk_deferred_once(KERN_WARNING "WARNING: stack recursion on stack type %d\n", info->type); in get_stack_info()