RKH
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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_MP_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

#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_); \
Initializes the previously allocated memory pool data strcuture RKH_MP_T.
Definition: rkhtrc.h:3319
#define RKH_TRC_SYM(sym)
Insert a object address as trace record argument.
Definition: rkhtrc.h:992
#define RKH_TRC_BSIZE(bs)
Definition: rkhtrc.h:1084
#define RKH_TRC_NBLK(nb)
Definition: rkhtrc.h:1043
#define RKH_TRC_END()
Definition: rkhtrc.h:606

Initializes the previously allocated memory pool data strcuture RKH_MP_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 1195 of file rkhtrc.h.

#define RKH_TR_MP_GET (   memPool_,
  nFree_,
  nMin_ 
)
Value:
RKH_TRC_SYM(memPool_); \
RKH_TRC_NBLK(nFree_); \
RKH_TRC_MP_NMIN(nMin_); \
Get a memory block from one of the previously allocated memory pool.
Definition: rkhtrc.h:3320
#define RKH_TRC_SYM(sym)
Insert a object address as trace record argument.
Definition: rkhtrc.h:992
#define RKH_TRC_END_NOCRIT()
Definition: rkhtrc.h:665
#define RKH_TRC_NBLK(nb)
Definition: rkhtrc.h:1043
#define RKH_TRC_BEGIN_WOAOSIG_NOCRIT(eid_)
Definition: rkhtrc.h:657

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 1216 of file rkhtrc.h.

#define RKH_TR_MP_PUT (   memPool_,
  nFree_ 
)
Value:
RKH_TRC_SYM(memPool_); \
RKH_TRC_NBLK(nFree_); \
#define RKH_TRC_SYM(sym)
Insert a object address as trace record argument.
Definition: rkhtrc.h:992
#define RKH_TRC_END_NOCRIT()
Definition: rkhtrc.h:665
When the application is done with the memory block, it must be returned to the appropiate memory pool...
Definition: rkhtrc.h:3321
#define RKH_TRC_NBLK(nb)
Definition: rkhtrc.h:1043
#define RKH_TRC_BEGIN_WOAOSIG_NOCRIT(eid_)
Definition: rkhtrc.h:657

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 1234 of file rkhtrc.h.