mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Added index to all trace points. (#69)
This commit is contained in:
parent
c4b4156fcf
commit
359b10a4ea
|
@ -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
10
tasks.c
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue