Skip to content

Add traceSTARTING_SCHEDULER tracing hook. #1082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions include/FreeRTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,13 @@
#define traceTASK_SWITCHED_IN()
#endif

#ifndef traceSTARTING_SCHEDULER

/* Called after all idle tasks and timer task (if enabled) have been created
* successfully, just before the scheduler is started. */
#define traceSTARTING_SCHEDULER( xIdleTaskHandles )
#endif

#ifndef traceINCREASE_TICK_COUNT

/* Called before stepping the tick count after waking from tickless idle
Expand Down
2 changes: 2 additions & 0 deletions tasks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */

Expand Down
Loading