arch/assert: Keep the thread dump column order same as ps

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-06-05 17:10:19 +08:00 committed by Petro Karashchenko
parent c52a19c8dc
commit b02db04e00
3 changed files with 33 additions and 33 deletions

View File

@ -201,10 +201,10 @@ static void arm_dump_task(struct tcb_s *tcb, void *arg)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
" %4d" " %4d"
#endif #endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
" %7lu" " %7lu"
#endif #endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
" %3" PRId32 ".%1" PRId32 "%%%c" " %3" PRId32 ".%1" PRId32 "%%%c"
#endif #endif
@ -212,21 +212,21 @@ static void arm_dump_task(struct tcb_s *tcb, void *arg)
" %3" PRId32 ".%01" PRId32 "%%" " %3" PRId32 ".%01" PRId32 "%%"
#endif #endif
#if CONFIG_TASK_NAME_SIZE > 0 #if CONFIG_TASK_NAME_SIZE > 0
" %s %s\n", " %s %s\n"
#else #else
" %s\n", " %s\n"
#endif #endif
tcb->pid, tcb->sched_priority, , tcb->pid, tcb->sched_priority
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
tcb->cpu, , tcb->cpu
#endif
, (unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, (unsigned long)up_check_tcbstack(tcb)
#endif #endif
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb), , stack_filled / 10, stack_filled % 10
#endif , (stack_filled >= 10 * 80 ? '!' : ' ')
(unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, stack_filled / 10, stack_filled % 10,
(stack_filled >= 10 * 80 ? '!' : ' ')
#endif #endif
#ifdef CONFIG_SCHED_CPULOAD #ifdef CONFIG_SCHED_CPULOAD
, intpart, fracpart , intpart, fracpart

View File

@ -201,10 +201,10 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
" %4d" " %4d"
#endif #endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
" %7lu" " %7lu"
#endif #endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
" %3" PRId32 ".%1" PRId32 "%%%c" " %3" PRId32 ".%1" PRId32 "%%%c"
#endif #endif
@ -212,21 +212,21 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
" %3" PRId32 ".%01" PRId32 "%%" " %3" PRId32 ".%01" PRId32 "%%"
#endif #endif
#if CONFIG_TASK_NAME_SIZE > 0 #if CONFIG_TASK_NAME_SIZE > 0
" %s %s\n", " %s %s\n"
#else #else
" %s\n", " %s\n"
#endif #endif
tcb->pid, tcb->sched_priority, , tcb->pid, tcb->sched_priority
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
tcb->cpu, , tcb->cpu
#endif
, (unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, (unsigned long)up_check_tcbstack(tcb)
#endif #endif
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb), , stack_filled / 10, stack_filled % 10
#endif , (stack_filled >= 10 * 80 ? '!' : ' ')
(unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, stack_filled / 10, stack_filled % 10,
(stack_filled >= 10 * 80 ? '!' : ' ')
#endif #endif
#ifdef CONFIG_SCHED_CPULOAD #ifdef CONFIG_SCHED_CPULOAD
, intpart, fracpart , intpart, fracpart

View File

@ -116,10 +116,10 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
" %4d" " %4d"
#endif #endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
" %7lu" " %7lu"
#endif #endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
" %3" PRId32 ".%1" PRId32 "%%%c" " %3" PRId32 ".%1" PRId32 "%%%c"
#endif #endif
@ -127,21 +127,21 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
" %3" PRId32 ".%01" PRId32 "%%" " %3" PRId32 ".%01" PRId32 "%%"
#endif #endif
#if CONFIG_TASK_NAME_SIZE > 0 #if CONFIG_TASK_NAME_SIZE > 0
" %s %s\n", " %s %s\n"
#else #else
" %s\n", " %s\n"
#endif #endif
tcb->pid, tcb->sched_priority, , tcb->pid, tcb->sched_priority
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
tcb->cpu, , tcb->cpu
#endif
, (unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, (unsigned long)up_check_tcbstack(tcb)
#endif #endif
#ifdef CONFIG_STACK_COLORATION #ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb), , stack_filled / 10, stack_filled % 10
#endif , (stack_filled >= 10 * 80 ? '!' : ' ')
(unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, stack_filled / 10, stack_filled % 10,
(stack_filled >= 10 * 80 ? '!' : ' ')
#endif #endif
#ifdef CONFIG_SCHED_CPULOAD #ifdef CONFIG_SCHED_CPULOAD
, intpart, fracpart , intpart, fracpart