On Sun, Sep 22, 2024 at 02:54:59PM +0200, Oleg Nesterov wrote: > > Well, this means that show_regs() will be called twice if CONFIG_DEBUG_BUGVERBOSE > at least on x86, see dump_stack() in panic(). See also show_regs_if_on_stack() > in show_trace_log_lvl(). > > Not good... > Okay, I see. The dump_stack() is arch-dependent function, it doesn't call show_regs() on arm64. Do you have any suggestion where to dump regs without arch-dependence on task exiting flow? Thanks Qiwu