Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
J-Release Documentation
[o-du/l2.git]
/
src
/
du_app
/
du_utils.h
diff --git
a/src/du_app/du_utils.h
b/src/du_app/du_utils.h
index
e98aa43
..
98f0338
100644
(file)
--- a/
src/du_app/du_utils.h
+++ b/
src/du_app/du_utils.h
@@
-44,6
+44,16
@@
/* allocate and zero out a static buffer */
/* allocate and zero out a static buffer */
+#ifdef MEM_SIZE_CHECK
+#define DU_APP_MEMORY_ALLOC_SIZE_LOG(_line, _func, _size) \
+{\
+ DU_LOG("\n DUAPP line = %d, func = %s, _size= %d ", _line, _func, _size); \
+}
+#else
+#define DU_APP_MEMORY_ALLOC_SIZE_LOG(_line, _func, _size) {}
+#endif
+
+
#ifdef ODU_MEMORY_DEBUG_LOG
#define DU_MEM_LOG(_macro, _file, _line, _func, _size, _datPtr)\
{\
#ifdef ODU_MEMORY_DEBUG_LOG
#define DU_MEM_LOG(_macro, _file, _line, _func, _size, _datPtr)\
{\
@@
-56,6
+66,7
@@
#define DU_ALLOC(_datPtr, _size) \
{ \
#define DU_ALLOC(_datPtr, _size) \
{ \
+ DU_APP_MEMORY_ALLOC_SIZE_LOG(__LINE__, __FUNCTION__, _size); \
int _ret; \
_ret = SGetSBuf(DU_APP_MEM_REGION, DU_POOL, \
(Data **)&_datPtr, _size); \
int _ret; \
_ret = SGetSBuf(DU_APP_MEM_REGION, DU_POOL, \
(Data **)&_datPtr, _size); \
@@
-83,6
+94,7
@@
* during inter-layer communication */
#define DU_ALLOC_SHRABL_BUF(_buf, _size) \
{ \
* during inter-layer communication */
#define DU_ALLOC_SHRABL_BUF(_buf, _size) \
{ \
+ DU_APP_MEMORY_ALLOC_SIZE_LOG(__LINE__, __FUNCTION__, _size); \
if(SGetStaticBuffer(DU_APP_MEM_REGION, DU_POOL, \
(Data **)&_buf, (Size) _size, 0) == ROK) \
{ \
if(SGetStaticBuffer(DU_APP_MEM_REGION, DU_POOL, \
(Data **)&_buf, (Size) _size, 0) == ROK) \
{ \