pvReturn = pucAlignedHeap + xNextFreeByte;\r
xNextFreeByte += xWantedSize;\r
}\r
- }\r
+\r
+ traceMALLOC( pvReturn, xWantedSize );\r
+ } \r
xTaskResumeAll();\r
\r
#if( configUSE_MALLOC_FAILED_HOOK == 1 )\r
xFreeBytesRemaining -= pxBlock->xBlockSize;\r
}\r
}\r
+ \r
+ traceMALLOC( pvReturn, xWantedSize );\r
}\r
xTaskResumeAll();\r
\r
/* Add this block to the list of free blocks. */\r
prvInsertBlockIntoFreeList( ( ( xBlockLink * ) pxLink ) );\r
xFreeBytesRemaining += pxLink->xBlockSize;\r
+ traceFREE( pv, pxLink->xBlockSize );\r
}\r
xTaskResumeAll();\r
}\r
vTaskSuspendAll();\r
{\r
pvReturn = malloc( xWantedSize );\r
+ traceMALLOC( pvReturn, xWantedSize );\r
}\r
xTaskResumeAll();\r
\r
vTaskSuspendAll();\r
{\r
free( pv );\r
+ traceFREE( pv, 0 );\r
}\r
xTaskResumeAll();\r
}\r
}\r
}\r
}\r
+\r
+ traceMALLOC( pvReturn, xWantedSize );\r
}\r
xTaskResumeAll();\r
\r
/* Add this block to the list of free blocks. */\r
xFreeBytesRemaining += pxLink->xBlockSize;\r
prvInsertBlockIntoFreeList( ( ( xBlockLink * ) pxLink ) );\r
+ traceFREE( pv, pxLink->xBlockSize );\r
}\r
xTaskResumeAll();\r
}\r