mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Add traceTASK_NOTIFY_STATE_CLEAR and traceTASK_NOTIFY_VALUE_CLEAR hooks.
Both xTaskGenericNotifyStateClear and ulTaskGenericNotifyValueClear did not feature any tracing hooks besides the ENTER and EXIT calls. This adds the relevant hooks to inform a tracer that the notification state/value has changed.
This commit is contained in:
parent
402f715cb2
commit
e786375a1c
|
@ -1029,6 +1029,14 @@
|
||||||
#define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
|
#define traceTASK_NOTIFY_GIVE_FROM_ISR( uxIndexToNotify )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef traceTASK_NOTIFY_STATE_CLEAR
|
||||||
|
#define traceTASK_NOTIFY_STATE_CLEAR( pxTCB, uxIndexToNotify )
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef traceTASK_NOTIFY_VALUE_CLEAR
|
||||||
|
#define traceTASK_NOTIFY_VALUE_CLEAR( pxTCB, uxIndexToNotify, ulBitsToClear )
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef traceISR_EXIT_TO_SCHEDULER
|
#ifndef traceISR_EXIT_TO_SCHEDULER
|
||||||
#define traceISR_EXIT_TO_SCHEDULER()
|
#define traceISR_EXIT_TO_SCHEDULER()
|
||||||
#endif
|
#endif
|
||||||
|
|
4
tasks.c
4
tasks.c
|
@ -8248,6 +8248,8 @@ TickType_t uxTaskResetEventItemValue( void )
|
||||||
* its notification state cleared. */
|
* its notification state cleared. */
|
||||||
pxTCB = prvGetTCBFromHandle( xTask );
|
pxTCB = prvGetTCBFromHandle( xTask );
|
||||||
|
|
||||||
|
traceTASK_NOTIFY_STATE_CLEAR( pxTCB, uxIndexToClear );
|
||||||
|
|
||||||
taskENTER_CRITICAL();
|
taskENTER_CRITICAL();
|
||||||
{
|
{
|
||||||
if( pxTCB->ucNotifyState[ uxIndexToClear ] == taskNOTIFICATION_RECEIVED )
|
if( pxTCB->ucNotifyState[ uxIndexToClear ] == taskNOTIFICATION_RECEIVED )
|
||||||
|
@ -8287,6 +8289,8 @@ TickType_t uxTaskResetEventItemValue( void )
|
||||||
* its notification state cleared. */
|
* its notification state cleared. */
|
||||||
pxTCB = prvGetTCBFromHandle( xTask );
|
pxTCB = prvGetTCBFromHandle( xTask );
|
||||||
|
|
||||||
|
traceTASK_NOTIFY_VALUE_CLEAR( pxTCB, uxIndexToClear, ulBitsToClear );
|
||||||
|
|
||||||
taskENTER_CRITICAL();
|
taskENTER_CRITICAL();
|
||||||
{
|
{
|
||||||
/* Return the notification as it was before the bits were cleared,
|
/* Return the notification as it was before the bits were cleared,
|
||||||
|
|
Loading…
Reference in a new issue