POST_PROBEBLOCK_BEGIN_MEM(LC_MEMORY, "new", VT_PTR, pret, "%u", size);
POST_PROBEBLOCK_MIDDLE_MEM(size, MEMORY_API_ALLOC, pret);
APPEND_LOG_CALLSTACK();
+
+ PREPARE_LOCAL_BUF();
+ PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "d", size);
+ PACK_COMMON_END(pret, newerrno, blockresult);
+ PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
+ FLUSH_LOCAL_BUF();
+
POST_PROBEBLOCK_END();
return pret;
POST_PROBEBLOCK_BEGIN_MEM(LC_MEMORY, "delete", VT_NULL, NULL, "%p", ptr);
POST_PROBEBLOCK_MIDDLE_MEM(0, MEMORY_API_FREE, ptr);
POST_PROBEBLOCK_CALLSTACK();
+
+ PREPARE_LOCAL_BUF();
+ PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "p", ptr);
+ PACK_COMMON_END(0, newerrno, blockresult);
+ PACK_MEMORY(0, MEMORY_API_FREE, ptr);
+ FLUSH_LOCAL_BUF();
+
POST_PROBEBLOCK_END();
}
POST_PROBEBLOCK_BEGIN_MEM(LC_MEMORY, "delete", VT_NULL, NULL, "%p", ptr);
POST_PROBEBLOCK_MIDDLE_MEM(0, MEMORY_API_FREE, ptr);
POST_PROBEBLOCK_CALLSTACK();
+
+ PREPARE_LOCAL_BUF();
+ PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "p", ptr);
+ PACK_COMMON_END(0, newerrno, blockresult);
+ PACK_MEMORY(0, MEMORY_API_FREE, ptr);
+ FLUSH_LOCAL_BUF();
+
POST_PROBEBLOCK_END();
}
POST_PROBEBLOCK_BEGIN_MEM(LC_MEMORY, "new", VT_PTR, pret, "%u", size);
POST_PROBEBLOCK_MIDDLE_MEM(size, MEMORY_API_ALLOC, pret);
APPEND_LOG_CALLSTACK();
+
+ PREPARE_LOCAL_BUF();
+ PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "dp", size, ¬hrow);
+ PACK_COMMON_END(pret, newerrno, blockresult);
+ PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
+ FLUSH_LOCAL_BUF();
+
POST_PROBEBLOCK_END();
return pret;
POST_PROBEBLOCK_BEGIN_MEM(LC_MEMORY, "new", VT_PTR, pret, "%u", size);
POST_PROBEBLOCK_MIDDLE_MEM(size, MEMORY_API_ALLOC, pret);
APPEND_LOG_CALLSTACK();
+
+ PREPARE_LOCAL_BUF();
+ PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "dp", size, ¬hrow);
+ PACK_COMMON_END(pret, newerrno, blockresult);
+ PACK_MEMORY(size, MEMORY_API_ALLOC, pret);
+ FLUSH_LOCAL_BUF();
+
POST_PROBEBLOCK_END();
return pret;
POST_PROBEBLOCK_BEGIN_MEM(LC_MEMORY, "delete", VT_NULL, NULL, "%p", ptr);
POST_PROBEBLOCK_MIDDLE_MEM(0, MEMORY_API_FREE, ptr);
POST_PROBEBLOCK_CALLSTACK();
+
+ PREPARE_LOCAL_BUF();
+ PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "pp", ptr, ¬hrow);
+ PACK_COMMON_END(0, newerrno, blockresult);
+ PACK_MEMORY(0, MEMORY_API_FREE, ptr);
+ FLUSH_LOCAL_BUF();
+
POST_PROBEBLOCK_END();
}
POST_PROBEBLOCK_BEGIN_MEM(LC_MEMORY, "delete", VT_NULL, NULL, "%p", ptr);
POST_PROBEBLOCK_MIDDLE_MEM(0, MEMORY_API_FREE, ptr);
POST_PROBEBLOCK_CALLSTACK();
+
+ PREPARE_LOCAL_BUF();
+ PACK_COMMON_BEGIN(MSG_PROBE_MEMORY, LC_MEMORY, "pp", ptr, ¬hrow);
+ PACK_COMMON_END(0, newerrno, blockresult);
+ PACK_MEMORY(0, MEMORY_API_FREE, ptr);
+ FLUSH_LOCAL_BUF();
+
POST_PROBEBLOCK_END();
}