Lines Matching refs:state
21 * struct unwind_state - state used for robust unwinding.
69 static inline void unwind_init_common(struct unwind_state *state,
72 state->task = task;
74 state->kr_cur = NULL;
77 state->stack = stackinfo_get_unknown();
80 static struct stack_info *unwind_find_next_stack(const struct unwind_state *state,
84 for (int i = 0; i < state->nr_stacks; i++) {
85 struct stack_info *info = &state->stacks[i];
99 * @state: the current unwind state.
105 static inline int unwind_consume_stack(struct unwind_state *state,
111 if (stackinfo_on_stack(&state->stack, sp, size))
114 next = unwind_find_next_stack(state, sp, size);
135 state->stack = *next;
143 state->stack.low = sp + size;
150 * @state: the current unwind state.
155 unwind_next_frame_record(struct unwind_state *state)
157 unsigned long fp = state->fp;
163 err = unwind_consume_stack(state, fp, 16);
170 state->fp = READ_ONCE(*(unsigned long *)(fp));
171 state->pc = READ_ONCE(*(unsigned long *)(fp + 8));