mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
sched: add trace points during system startup and board initialization
Add trace points to record transitions of g_nx_initstate and to mark board early/late initialization boundaries. Also add trace marks for RESET and PANIC to improve boot-time diagnostics and failure analysis. Add OSINIT_RESET to indicate system is in reset process. Signed-off-by: yukangzhi <yukangzhi@xiaomi.com>
This commit is contained in:
@@ -73,7 +73,8 @@ enum nx_initstate_e
|
||||
OSINIT_OSREADY = 5, /* The OS is fully initialized and multi-tasking is
|
||||
* active. */
|
||||
OSINIT_IDLELOOP = 6, /* The OS enter idle loop. */
|
||||
OSINIT_PANIC = 7 /* Fatal error happened. */
|
||||
OSINIT_RESET = 7, /* The OS is in resetting process. */
|
||||
OSINIT_PANIC = 8 /* Fatal error happened. */
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user