arch: Show assigned cpu in dump task
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
f09ea317c1
commit
9cffc105c8
@ -165,6 +165,9 @@ static void arm_dump_task(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
/* Dump interesting properties of this task */
|
/* Dump interesting properties of this task */
|
||||||
|
|
||||||
_alert(" %4d %4d"
|
_alert(" %4d %4d"
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
" %4d"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
" %7lu"
|
" %7lu"
|
||||||
#endif
|
#endif
|
||||||
@ -180,6 +183,9 @@ static void arm_dump_task(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
#endif
|
#endif
|
||||||
"\n",
|
"\n",
|
||||||
tcb->pid, tcb->sched_priority,
|
tcb->pid, tcb->sched_priority,
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
tcb->cpu,
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
(unsigned long)up_check_tcbstack(tcb),
|
(unsigned long)up_check_tcbstack(tcb),
|
||||||
#endif
|
#endif
|
||||||
@ -234,6 +240,9 @@ static void arm_showtasks(void)
|
|||||||
/* Dump interesting properties of each task in the crash environment */
|
/* Dump interesting properties of each task in the crash environment */
|
||||||
|
|
||||||
_alert(" PID PRI"
|
_alert(" PID PRI"
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
" CPU"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
" USED"
|
" USED"
|
||||||
#endif
|
#endif
|
||||||
@ -251,6 +260,9 @@ static void arm_showtasks(void)
|
|||||||
|
|
||||||
#if CONFIG_ARCH_INTERRUPTSTACK > 7
|
#if CONFIG_ARCH_INTERRUPTSTACK > 7
|
||||||
_alert(" ---- ----"
|
_alert(" ---- ----"
|
||||||
|
# ifdef CONFIG_SMP
|
||||||
|
" ----"
|
||||||
|
# endif
|
||||||
# ifdef CONFIG_STACK_COLORATION
|
# ifdef CONFIG_STACK_COLORATION
|
||||||
" %7lu"
|
" %7lu"
|
||||||
# endif
|
# endif
|
||||||
|
@ -175,6 +175,9 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
|
|||||||
/* Dump interesting properties of this task */
|
/* Dump interesting properties of this task */
|
||||||
|
|
||||||
_alert(" %4d %4d"
|
_alert(" %4d %4d"
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
" %4d"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
" %7lu"
|
" %7lu"
|
||||||
#endif
|
#endif
|
||||||
@ -190,6 +193,9 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
|
|||||||
#endif
|
#endif
|
||||||
"\n",
|
"\n",
|
||||||
tcb->pid, tcb->sched_priority,
|
tcb->pid, tcb->sched_priority,
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
tcb->cpu,
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
(unsigned long)up_check_tcbstack(tcb),
|
(unsigned long)up_check_tcbstack(tcb),
|
||||||
#endif
|
#endif
|
||||||
@ -244,6 +250,9 @@ static inline void riscv_showtasks(void)
|
|||||||
/* Dump interesting properties of each task in the crash environment */
|
/* Dump interesting properties of each task in the crash environment */
|
||||||
|
|
||||||
_alert(" PID PRI"
|
_alert(" PID PRI"
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
" CPU"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
" USED"
|
" USED"
|
||||||
#endif
|
#endif
|
||||||
@ -261,6 +270,9 @@ static inline void riscv_showtasks(void)
|
|||||||
|
|
||||||
#if CONFIG_ARCH_INTERRUPTSTACK > 15
|
#if CONFIG_ARCH_INTERRUPTSTACK > 15
|
||||||
_alert(" ---- ----"
|
_alert(" ---- ----"
|
||||||
|
# ifdef CONFIG_SMP
|
||||||
|
" ----"
|
||||||
|
# endif
|
||||||
# ifdef CONFIG_STACK_COLORATION
|
# ifdef CONFIG_STACK_COLORATION
|
||||||
" %7lu"
|
" %7lu"
|
||||||
# endif
|
# endif
|
||||||
|
@ -90,6 +90,9 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
|
|||||||
/* Dump interesting properties of this task */
|
/* Dump interesting properties of this task */
|
||||||
|
|
||||||
_alert(" %4d %4d"
|
_alert(" %4d %4d"
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
" %4d"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
" %7lu"
|
" %7lu"
|
||||||
#endif
|
#endif
|
||||||
@ -105,6 +108,9 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
|
|||||||
#endif
|
#endif
|
||||||
"\n",
|
"\n",
|
||||||
tcb->pid, tcb->sched_priority,
|
tcb->pid, tcb->sched_priority,
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
tcb->cpu,
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
(unsigned long)up_check_tcbstack(tcb),
|
(unsigned long)up_check_tcbstack(tcb),
|
||||||
#endif
|
#endif
|
||||||
@ -159,6 +165,9 @@ static inline void xtensa_showtasks(void)
|
|||||||
/* Dump interesting properties of each task in the crash environment */
|
/* Dump interesting properties of each task in the crash environment */
|
||||||
|
|
||||||
_alert(" PID PRI"
|
_alert(" PID PRI"
|
||||||
|
#ifdef CONFIG_SMP
|
||||||
|
" CPU"
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_STACK_COLORATION
|
#ifdef CONFIG_STACK_COLORATION
|
||||||
" USED"
|
" USED"
|
||||||
#endif
|
#endif
|
||||||
@ -176,6 +185,9 @@ static inline void xtensa_showtasks(void)
|
|||||||
|
|
||||||
#if CONFIG_ARCH_INTERRUPTSTACK > 15
|
#if CONFIG_ARCH_INTERRUPTSTACK > 15
|
||||||
_alert(" ---- ----"
|
_alert(" ---- ----"
|
||||||
|
# ifdef CONFIG_SMP
|
||||||
|
" ----"
|
||||||
|
# endif
|
||||||
# ifdef CONFIG_STACK_COLORATION
|
# ifdef CONFIG_STACK_COLORATION
|
||||||
" %7lu"
|
" %7lu"
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user