mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add traceSTARTING_SCHEDULER tracing hook. (#1082)
* Add traceSTARTING_SCHEDULER tracing hook. Discussed here: https://forums.freertos.org/t/tracing-improvements/20097 This hook enables tracers to run code on startup after all RTOS resources are created and to detect that the scheduler is starting without relying on traceENTER/traceEXIT macros. It also provides tracers access to the task handle of all IDLE tasks, allowing them to be identified unambiguously and without relying on INCLUDE_xTaskGetIdleTaskHandle.
This commit is contained in:
parent
bee9037c46
commit
e64d1e06b3
2 changed files with 9 additions and 0 deletions
2
tasks.c
2
tasks.c
|
@ -3732,6 +3732,8 @@ void vTaskStartScheduler( void )
|
|||
|
||||
traceTASK_SWITCHED_IN();
|
||||
|
||||
traceSTARTING_SCHEDULER( xIdleTaskHandles );
|
||||
|
||||
/* Setting up the timer tick is hardware specific and thus in the
|
||||
* portable interface. */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue