RKH
Traces of memory pool services

Macros for tracing the memory pool execution. More...

Macros

#define RKH_TR_MP_INIT(memPool_, nBlocks_, blockSize_)
 Initializes the previously allocated memory pool data strcuture RKH_MEMPOOL_T. More...
 
#define RKH_TR_MP_GET(memPool_, nFree_, nMin_)
 Get a memory block from one of the previously allocated memory pool. More...
 
#define RKH_TR_MP_PUT(memPool_, nFree_)
 When the application is done with the memory block, it must be returned to the appropiate memory pool. The block must be allocated from the same memory pool to which it is returned. More...
 

Detailed Description

Macros for tracing the memory pool execution.

Macro Definition Documentation

◆ RKH_TR_MP_INIT

#define RKH_TR_MP_INIT (   memPool_,
  nBlocks_,
  blockSize_ 
)
Value:
RKH_TRC_BEGIN_WOAOSIG(RKH_TE_MP_INIT) \
RKH_TRC_SYM(memPool_); \
RKH_TRC_NBLK(nBlocks_); \
RKH_TRC_BSIZE(blockSize_); \
RKH_TRC_END()
#define RKH_TE_MP_INIT
Initializes the previously allocated memory pool data strcuture RKH_MEMPOOL_T.

Initializes the previously allocated memory pool data strcuture RKH_MEMPOOL_T.

Description Initialize a memory block pool
Group RKH_TG_MP
EventID RKH_TE_MP_INIT
Parameters
[in]memPool_Memory pool
[in]nBlocks_Total number of blocks in bytes
[in]blockSize_Maximum block size in bytes

Definition at line 88 of file rkhtrc_record.h.

◆ RKH_TR_MP_GET

#define RKH_TR_MP_GET (   memPool_,
  nFree_,
  nMin_ 
)
Value:
RKH_TRC_SYM(memPool_); \
RKH_TRC_NBLK(nFree_); \
RKH_TRC_MP_NMIN(nMin_); \
RKH_TRC_END_NOCRIT()
#define RKH_TE_MP_GET
Get a memory block from one of the previously allocated memory pool.
#define RKH_TRC_BEGIN_WOAOSIG_NOCRIT(eid_)

Get a memory block from one of the previously allocated memory pool.

Description Get a block from the pool
Group RKH_TG_MP
EventID RKH_TE_MP_GET
Parameters
[in]memPool_Memory pool
[in]nFree_Number of free blocks remaining
[in]nMin_Minimum number of free blocks ever in this pool, i.e. holds the lowest number of free blocks ever present in the pool.

Definition at line 110 of file rkhtrc_record.h.

◆ RKH_TR_MP_PUT

#define RKH_TR_MP_PUT (   memPool_,
  nFree_ 
)
Value:
RKH_TRC_SYM(memPool_); \
RKH_TRC_NBLK(nFree_); \
RKH_TRC_END_NOCRIT()
#define RKH_TE_MP_PUT
When the application is done with the memory block, it must be returned to the appropiate memory pool...

When the application is done with the memory block, it must be returned to the appropiate memory pool. The block must be allocated from the same memory pool to which it is returned.

Description Put the block to the pool
Group RKH_TG_MP
EventID RKH_TE_MP_PUT
Parameters
[in]memPool_Memory pool
[in]nFree_Number of free blocks remaining

Definition at line 128 of file rkhtrc_record.h.