Lines Matching +full:high +full:- +full:to +full:- +full:low

1 /* SPDX-License-Identifier: GPL-2.0-only */
28 unsigned long low; member
29 unsigned long high; member
41 * longer valid to unwind to.
43 * @prev_fp: The fp that pointed to this frame record, or a synthetic value
44 * of 0. This is used to ensure that within a stack, each
47 * value of STACK_TYPE_UNKNOWN. This is used to detect a
48 * transition from one stack to another.
72 static inline bool on_stack(unsigned long sp, unsigned long low, in on_stack() argument
73 unsigned long high, enum stack_type type, in on_stack() argument
76 if (!low) in on_stack()
79 if (sp < low || sp >= high) in on_stack()
83 info->low = low; in on_stack()
84 info->high = high; in on_stack()
85 info->type = type; in on_stack()
93 unsigned long low = (unsigned long)raw_cpu_read(irq_stack_ptr); in on_irq_stack() local
94 unsigned long high = low + IRQ_STACK_SIZE; in on_irq_stack() local
96 return on_stack(sp, low, high, STACK_TYPE_IRQ, info); in on_irq_stack()
103 unsigned long low = (unsigned long)task_stack_page(tsk); in on_task_stack() local
104 unsigned long high = low + THREAD_SIZE; in on_task_stack() local
106 return on_stack(sp, low, high, STACK_TYPE_TASK, info); in on_task_stack()
115 unsigned long low = (unsigned long)raw_cpu_ptr(overflow_stack); in on_overflow_stack() local
116 unsigned long high = low + OVERFLOW_STACK_SIZE; in on_overflow_stack() local
118 return on_stack(sp, low, high, STACK_TYPE_OVERFLOW, info); in on_overflow_stack()
127 * We can only safely access per-cpu stacks from current in a non-preemptible
135 info->type = STACK_TYPE_UNKNOWN; in on_accessible_stack()
154 frame->fp = fp; in start_backtrace()
155 frame->pc = pc; in start_backtrace()
157 frame->graph = 0; in start_backtrace()
163 * In unwind_frame() we'll check that the FP points to a valid stack, in start_backtrace()
165 * treated as a transition to whichever stack that happens to be. The in start_backtrace()
166 * prev_fp value won't be used, but we set it to 0 such that it is in start_backtrace()
169 bitmap_zero(frame->stacks_done, __NR_STACK_TYPES); in start_backtrace()
170 frame->prev_fp = 0; in start_backtrace()
171 frame->prev_type = STACK_TYPE_UNKNOWN; in start_backtrace()