arch: Show assigned cpu in dump task

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2022-03-23 22:18:15 +08:00
committed by Xiang Xiao
parent f09ea317c1
commit 9cffc105c8
3 changed files with 36 additions and 0 deletions
+12
View File
@@ -165,6 +165,9 @@ static void arm_dump_task(FAR struct tcb_s *tcb, FAR void *arg)
/* Dump interesting properties of this task */
_alert(" %4d %4d"
#ifdef CONFIG_SMP
" %4d"
#endif
#ifdef CONFIG_STACK_COLORATION
" %7lu"
#endif
@@ -180,6 +183,9 @@ static void arm_dump_task(FAR struct tcb_s *tcb, FAR void *arg)
#endif
"\n",
tcb->pid, tcb->sched_priority,
#ifdef CONFIG_SMP
tcb->cpu,
#endif
#ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb),
#endif
@@ -234,6 +240,9 @@ static void arm_showtasks(void)
/* Dump interesting properties of each task in the crash environment */
_alert(" PID PRI"
#ifdef CONFIG_SMP
" CPU"
#endif
#ifdef CONFIG_STACK_COLORATION
" USED"
#endif
@@ -251,6 +260,9 @@ static void arm_showtasks(void)
#if CONFIG_ARCH_INTERRUPTSTACK > 7
_alert(" ---- ----"
# ifdef CONFIG_SMP
" ----"
# endif
# ifdef CONFIG_STACK_COLORATION
" %7lu"
# endif
+12
View File
@@ -175,6 +175,9 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
/* Dump interesting properties of this task */
_alert(" %4d %4d"
#ifdef CONFIG_SMP
" %4d"
#endif
#ifdef CONFIG_STACK_COLORATION
" %7lu"
#endif
@@ -190,6 +193,9 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
#endif
"\n",
tcb->pid, tcb->sched_priority,
#ifdef CONFIG_SMP
tcb->cpu,
#endif
#ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb),
#endif
@@ -244,6 +250,9 @@ static inline void riscv_showtasks(void)
/* Dump interesting properties of each task in the crash environment */
_alert(" PID PRI"
#ifdef CONFIG_SMP
" CPU"
#endif
#ifdef CONFIG_STACK_COLORATION
" USED"
#endif
@@ -261,6 +270,9 @@ static inline void riscv_showtasks(void)
#if CONFIG_ARCH_INTERRUPTSTACK > 15
_alert(" ---- ----"
# ifdef CONFIG_SMP
" ----"
# endif
# ifdef CONFIG_STACK_COLORATION
" %7lu"
# endif
+12
View File
@@ -90,6 +90,9 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
/* Dump interesting properties of this task */
_alert(" %4d %4d"
#ifdef CONFIG_SMP
" %4d"
#endif
#ifdef CONFIG_STACK_COLORATION
" %7lu"
#endif
@@ -105,6 +108,9 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
#endif
"\n",
tcb->pid, tcb->sched_priority,
#ifdef CONFIG_SMP
tcb->cpu,
#endif
#ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb),
#endif
@@ -159,6 +165,9 @@ static inline void xtensa_showtasks(void)
/* Dump interesting properties of each task in the crash environment */
_alert(" PID PRI"
#ifdef CONFIG_SMP
" CPU"
#endif
#ifdef CONFIG_STACK_COLORATION
" USED"
#endif
@@ -176,6 +185,9 @@ static inline void xtensa_showtasks(void)
#if CONFIG_ARCH_INTERRUPTSTACK > 15
_alert(" ---- ----"
# ifdef CONFIG_SMP
" ----"
# endif
# ifdef CONFIG_STACK_COLORATION
" %7lu"
# endif