总结一下与Task相关的Show命令
首先是组件INCLUDE_TASK_SHOW - taskShow()
/* display task information from TCBs */
STATUS taskShow
(
TASK_ID tid,
int level /* 0 = summary, 1 = details, 2 = all tasks */
);
/* ti(tid) -> taskShow(tid, 1) */
void ti(long taskNameOrId);
/*
* i(0) -> taskShow(0, 2)
* i(tid) -> taskShow(tid, 0)
*/
void i(long taskNameOrId);
大部分Task在大部分时刻的状态都是PEND,那它们pend在什么位置?
/* display information about the object a task is pended on */
STATUS taskWaitShow
(
TASK_ID taskId,
int level /* 0 = summary, 1 = details */
);
/* tw(tid) -> taskWaitShow(tid, 1) */
void tw(long taskNameOrId);
/*
* w(0) -> taskWaitShow(tid, 0) for all tasks
* w(tid) -> taskWaitShow(tid, 0)
*/
void w(long taskNameOrId);
如果只看Task的Event使用情况
/* display a task's VxWorks Events information */
STATUS eventTaskShow(TASK_ID tid);
如果Stack溢出了,用checkStack()查看
/* print a summary of each task's stack usage */
void checkStack
(
long taskNameOrId /* 0 = summarize all */
);
/* display the contents of a task's registers */
void taskRegsShow(TASK_ID tid);
还有组件INCLUDE_TASK_HOOKS_SHOW带来的Hook Show
/* show the list of task create routines */
void taskCreateHookShow();
/* show the list of task delete routines */
void taskDeleteHookShow();
/* show the list of task switch routines */
void taskSwitchHookShow();
/* show the list of task swap routines */
void taskSwapHookShow();
也给isrShow()来个链接吧 - INCLUDE_ISR_SHOW