arch: Correct the order of stack related information in assert
forget to update in this patch:
commit b02db04e00
Author: Xiang Xiao <xiaoxiang@xiaomi.com>
Date: Sun Jun 5 17:10:19 2022 +0800
arch/assert: Keep the thread dump column order same as ps
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
aa6ec6518c
commit
9ff0971d3f
@ -202,10 +202,7 @@ static void arm_dump_task(struct tcb_s *tcb, void *arg)
|
||||
#endif
|
||||
" %7lu"
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu"
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_CPULOAD
|
||||
" %3" PRId32 ".%01" PRId32 "%%"
|
||||
@ -218,8 +215,6 @@ static void arm_dump_task(struct tcb_s *tcb, void *arg)
|
||||
, (unsigned long)tcb->adj_stack_size
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)up_check_tcbstack(tcb)
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
, stack_filled / 10, stack_filled % 10
|
||||
, (stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
#endif
|
||||
@ -274,13 +269,10 @@ static void arm_showtasks(void)
|
||||
_alert(" PID PRI"
|
||||
#ifdef CONFIG_SMP
|
||||
" CPU"
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" USED"
|
||||
#endif
|
||||
" STACK"
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" FILLED "
|
||||
" USED FILLED "
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_CPULOAD
|
||||
" CPU"
|
||||
@ -291,13 +283,10 @@ static void arm_showtasks(void)
|
||||
_alert(" ---- ----"
|
||||
# ifdef CONFIG_SMP
|
||||
" ----"
|
||||
# endif
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu"
|
||||
# endif
|
||||
" %7lu"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
# endif
|
||||
# ifdef CONFIG_SCHED_CPULOAD
|
||||
" ----"
|
||||
@ -306,11 +295,9 @@ static void arm_showtasks(void)
|
||||
" irq"
|
||||
# endif
|
||||
"\n"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
# endif
|
||||
, (unsigned long)(CONFIG_ARCH_INTERRUPTSTACK & ~7)
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
, stack_filled / 10, stack_filled % 10,
|
||||
(stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
# endif
|
||||
|
@ -202,10 +202,7 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
|
||||
#endif
|
||||
" %7lu"
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu"
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_CPULOAD
|
||||
" %3" PRId32 ".%01" PRId32 "%%"
|
||||
@ -218,8 +215,6 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
|
||||
, (unsigned long)tcb->adj_stack_size
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)up_check_tcbstack(tcb)
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
, stack_filled / 10, stack_filled % 10
|
||||
, (stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
#endif
|
||||
@ -274,13 +269,10 @@ static inline void riscv_showtasks(void)
|
||||
_alert(" PID PRI"
|
||||
#ifdef CONFIG_SMP
|
||||
" CPU"
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" USED"
|
||||
#endif
|
||||
" STACK"
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" FILLED "
|
||||
" USED FILLED "
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_CPULOAD
|
||||
" CPU"
|
||||
@ -291,13 +283,10 @@ static inline void riscv_showtasks(void)
|
||||
_alert(" ---- ----"
|
||||
# ifdef CONFIG_SMP
|
||||
" ----"
|
||||
# endif
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu"
|
||||
# endif
|
||||
" %7lu"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
# endif
|
||||
# ifdef CONFIG_SCHED_CPULOAD
|
||||
" ----"
|
||||
@ -306,11 +295,9 @@ static inline void riscv_showtasks(void)
|
||||
" irq"
|
||||
# endif
|
||||
"\n"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
# endif
|
||||
, (unsigned long)(CONFIG_ARCH_INTERRUPTSTACK & ~15)
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
, stack_filled / 10, stack_filled % 10,
|
||||
(stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
# endif
|
||||
|
@ -117,10 +117,7 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
|
||||
#endif
|
||||
" %7lu"
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu"
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_CPULOAD
|
||||
" %3" PRId32 ".%01" PRId32 "%%"
|
||||
@ -135,8 +132,6 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
|
||||
, (unsigned long)tcb->adj_stack_size
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)up_check_tcbstack(tcb)
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
, stack_filled / 10, stack_filled % 10
|
||||
, (stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
#endif
|
||||
@ -191,13 +186,10 @@ static inline void xtensa_showtasks(void)
|
||||
_alert(" PID PRI"
|
||||
#ifdef CONFIG_SMP
|
||||
" CPU"
|
||||
#endif
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" USED"
|
||||
#endif
|
||||
" STACK"
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
" FILLED "
|
||||
" USED FILLED "
|
||||
#endif
|
||||
#ifdef CONFIG_SCHED_CPULOAD
|
||||
" CPU"
|
||||
@ -208,13 +200,10 @@ static inline void xtensa_showtasks(void)
|
||||
_alert(" ---- ----"
|
||||
# ifdef CONFIG_SMP
|
||||
" ----"
|
||||
# endif
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu"
|
||||
# endif
|
||||
" %7lu"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
# endif
|
||||
# ifdef CONFIG_SCHED_CPULOAD
|
||||
" ----"
|
||||
@ -223,11 +212,9 @@ static inline void xtensa_showtasks(void)
|
||||
" irq"
|
||||
# endif
|
||||
"\n"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
# endif
|
||||
, (unsigned long)(CONFIG_ARCH_INTERRUPTSTACK & ~15)
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
, stack_filled / 10, stack_filled % 10,
|
||||
(stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user