mips: add arch_trigger_all_cpu_backtrace() function
Quoted 5 lines
Quoted 3 lines
This patch adds
arch_trigger_all_cpu_backtrace()for mips architecture.Don't forget your Signed-off-by
I'm sorry fot this.
Quoted 9 lines
Quoted 9 lines
(quoted diff) +9
-0+static void arch_dump_stack(void *info) +{ + struct pt_regs *regs; + + regs = get_irq_regs(); + + if(regs) + show_regs(regs); +
Quoted 8 lines
Review
Quoted 6 lines
+
dump_stack();(quoted diff) +5
-0+} + +void arch_trigger_all_cpu_backtrace(bool include_self) +{ + smp_call_function(arch_dump_stack, NULL, 1);should this call
arch_dump_stackdirectly too ifinclude_self?
Currently, in case of mips there is no case include_self is true, so this is not a problem. arch_trigger_all_cpu_backtrace can only be called from trigger_allbutself_cpu_backtrace() in kernel/watchdog.c. But as you said, if the case will be added, we should consider that.
Thanks.
Quoted 2 lines
Cheers James�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�