修复堆栈支持

This commit is contained in:
liankong
2025-03-30 17:09:51 +08:00
parent 770c9632ae
commit d6b0ce2565
2 changed files with 10 additions and 1 deletions

View File

@@ -1271,6 +1271,14 @@ bool kpm_is_allow_address(unsigned long addr)
return allow;
}
#ifndef CONFIG_ARCH_STACKWALK
struct stack_trace {
unsigned int nr_entries, max_entries;
unsigned long *entries;
unsigned int skip; /* input argument: How many entries to skip */
};
#endif
static struct kprobe dump_stack_kp = {
.symbol_name = "dump_stack",
};