Added index to all trace points. (#69)

This commit is contained in:
eriktamlin 2020-06-18 01:38:06 +02:00 committed by GitHub
parent c4b4156fcf
commit 359b10a4ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View file

@ -637,7 +637,7 @@ hold explicit before calling the code. */
#endif #endif
#ifndef traceTASK_NOTIFY_TAKE_BLOCK #ifndef traceTASK_NOTIFY_TAKE_BLOCK
#define traceTASK_NOTIFY_TAKE_BLOCK() #define traceTASK_NOTIFY_TAKE_BLOCK( uxIndexToWait )
#endif #endif
#ifndef traceTASK_NOTIFY_TAKE #ifndef traceTASK_NOTIFY_TAKE
@ -645,7 +645,7 @@ hold explicit before calling the code. */
#endif #endif
#ifndef traceTASK_NOTIFY_WAIT_BLOCK #ifndef traceTASK_NOTIFY_WAIT_BLOCK
#define traceTASK_NOTIFY_WAIT_BLOCK() #define traceTASK_NOTIFY_WAIT_BLOCK( uxIndexToWait )
#endif #endif
#ifndef traceTASK_NOTIFY_WAIT #ifndef traceTASK_NOTIFY_WAIT
@ -653,15 +653,15 @@ hold explicit before calling the code. */
#endif #endif
#ifndef traceTASK_NOTIFY #ifndef traceTASK_NOTIFY
#define traceTASK_NOTIFY() #define traceTASK_NOTIFY( uxIndexToNotify )
#endif #endif
#ifndef traceTASK_NOTIFY_FROM_ISR #ifndef traceTASK_NOTIFY_FROM_ISR
#define traceTASK_NOTIFY_FROM_ISR() #define traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify )
#endif #endif
#ifndef traceTASK_NOTIFY_GIVE_FROM_ISR #ifndef traceTASK_NOTIFY_GIVE_FROM_ISR
#define traceTASK_NOTIFY_GIVE_FROM_ISR() #define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
#endif #endif
#ifndef traceSTREAM_BUFFER_CREATE_FAILED #ifndef traceSTREAM_BUFFER_CREATE_FAILED

10
tasks.c
View file

@ -4658,7 +4658,7 @@ TickType_t uxReturn;
if( xTicksToWait > ( TickType_t ) 0 ) if( xTicksToWait > ( TickType_t ) 0 )
{ {
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
traceTASK_NOTIFY_TAKE_BLOCK(); traceTASK_NOTIFY_TAKE_BLOCK( uxIndexToWait );
/* All ports are written to allow a yield in a critical /* All ports are written to allow a yield in a critical
section (some will yield immediately, others wait until the section (some will yield immediately, others wait until the
@ -4737,7 +4737,7 @@ TickType_t uxReturn;
if( xTicksToWait > ( TickType_t ) 0 ) if( xTicksToWait > ( TickType_t ) 0 )
{ {
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
traceTASK_NOTIFY_WAIT_BLOCK(); traceTASK_NOTIFY_WAIT_BLOCK( uxIndexToWait );
/* All ports are written to allow a yield in a critical /* All ports are written to allow a yield in a critical
section (some will yield immediately, others wait until the section (some will yield immediately, others wait until the
@ -4862,7 +4862,7 @@ TickType_t uxReturn;
break; break;
} }
traceTASK_NOTIFY(); traceTASK_NOTIFY( uxIndexToNotify );
/* If the task is in the blocked state specifically to wait for a /* If the task is in the blocked state specifically to wait for a
notification then unblock it now. */ notification then unblock it now. */
@ -5000,7 +5000,7 @@ TickType_t uxReturn;
break; break;
} }
traceTASK_NOTIFY_FROM_ISR(); traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify );
/* If the task is in the blocked state specifically to wait for a /* If the task is in the blocked state specifically to wait for a
notification then unblock it now. */ notification then unblock it now. */
@ -5089,7 +5089,7 @@ TickType_t uxReturn;
semaphore. */ semaphore. */
( pxTCB->ulNotifiedValue[ uxIndexToNotify ] )++; ( pxTCB->ulNotifiedValue[ uxIndexToNotify ] )++;
traceTASK_NOTIFY_GIVE_FROM_ISR(); traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify );
/* If the task is in the blocked state specifically to wait for a /* If the task is in the blocked state specifically to wait for a
notification then unblock it now. */ notification then unblock it now. */