mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Add extended versions of all notify / notify give tracing hooks.
The previous versions of these macros did not hygienically expose what task was being notified, and how/if the notification value was notified.
This commit is contained in:
parent
e786375a1c
commit
ab558f5f97
|
@ -1021,14 +1021,35 @@
|
||||||
#define traceTASK_NOTIFY( uxIndexToNotify )
|
#define traceTASK_NOTIFY( uxIndexToNotify )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef traceTASK_NOTIFY_EXT
|
||||||
|
|
||||||
|
/* Extended version of traceTASK_NOTIFY that also exposes the task being
|
||||||
|
* notified, and if/how the notification value was modified. */
|
||||||
|
#define traceTASK_NOTIFY_EXT( pxTCB, uxIndexToNotify, eAction, xReturn ) traceTASK_NOTIFY( uxIndexToNotify )
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef traceTASK_NOTIFY_FROM_ISR
|
#ifndef traceTASK_NOTIFY_FROM_ISR
|
||||||
#define traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify )
|
#define traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef traceTASK_NOTIFY_FROM_ISR_EXT
|
||||||
|
|
||||||
|
/* Extended version of traceTASK_NOTIFY_FROM_ISR that also exposes the task
|
||||||
|
* being notified, and if/how the notification value was modified. */
|
||||||
|
#define traceTASK_NOTIFY_FROM_ISR_EXT( pxTCB, uxIndexToNotify, eAction, xReturn ) traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify )
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef traceTASK_NOTIFY_GIVE_FROM_ISR
|
#ifndef traceTASK_NOTIFY_GIVE_FROM_ISR
|
||||||
#define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
|
#define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef traceTASK_NOTIFY_GIVE_FROM_ISR_EXT
|
||||||
|
|
||||||
|
/* Extended version of traceTASK_NOTIFY_GIVE_FROM_ISR that also exposes the task
|
||||||
|
* being notified. */
|
||||||
|
#define traceTASK_NOTIFY_GIVE_FROM_ISR_EXT( pxTCB, uxIndexToNotify ) traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef traceTASK_NOTIFY_STATE_CLEAR
|
#ifndef traceTASK_NOTIFY_STATE_CLEAR
|
||||||
#define traceTASK_NOTIFY_STATE_CLEAR( pxTCB, uxIndexToNotify )
|
#define traceTASK_NOTIFY_STATE_CLEAR( pxTCB, uxIndexToNotify )
|
||||||
#endif
|
#endif
|
||||||
|
|
4
tasks.c
4
tasks.c
|
@ -7903,7 +7903,7 @@ TickType_t uxTaskResetEventItemValue( void )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
traceTASK_NOTIFY( uxIndexToNotify );
|
traceTASK_NOTIFY_EXT( pxTCB, uxIndexToNotify, eAction, xReturn );
|
||||||
|
|
||||||
/* 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. */
|
||||||
|
@ -8045,7 +8045,7 @@ TickType_t uxTaskResetEventItemValue( void )
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
traceTASK_NOTIFY_FROM_ISR( uxIndexToNotify );
|
traceTASK_NOTIFY_FROM_ISR_EXT( pxTCB, uxIndexToNotify, eAction, xReturn );
|
||||||
|
|
||||||
/* 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