1 // SPDX-License-Identifier: GPL-2.0 1 2 /* 3 * Copyright (C) 2022-2023 Loongson Technology 4 */ 5 #include <linux/kernel.h> 6 #include <linux/ftrace.h> 7 8 #include <asm/unwind.h> 9 10 bool default_next_frame(struct unwind_state *s 11 { 12 struct stack_info *info = &state->stac 13 unsigned long addr; 14 15 if (unwind_done(state)) 16 return false; 17 18 do { 19 for (state->sp += sizeof(unsig 20 state->sp < info->end; st 21 addr = *(unsigned long 22 state->pc = unwind_gra 23 if (__kernel_text_addr 24 return true; 25 } 26 27 state->sp = info->next_sp; 28 29 } while (!get_stack_info(state->sp, st 30 31 return false; 32 } 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.