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:
yukangzhi
2025-05-06 18:10:22 +08:00
committed by Xiang Xiao
parent 6ccc2fc7c8
commit 890f2e4625
6 changed files with 56 additions and 1 deletions
+2 -1
View File
@@ -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. */
};
/****************************************************************************