Lines Matching defs:enmTag

41 static void *mmR3HeapAlloc(PMMHEAP pHeap, MMTAG enmTag, size_t cbSize, bool fZero);
131 * @param enmTag Statistics tag. Statistics are collected on a per tag
136 VMMR3DECL(void *) MMR3HeapAllocU(PUVM pUVM, MMTAG enmTag, size_t cbSize)
139 return mmR3HeapAlloc(pUVM->mm.s.pHeap, enmTag, cbSize, false);
155 * @param enmTag Statistics tag. Statistics are collected on a per tag
160 VMMR3DECL(void *) MMR3HeapAlloc(PVM pVM, MMTAG enmTag, size_t cbSize)
162 return mmR3HeapAlloc(pVM->pUVM->mm.s.pHeap, enmTag, cbSize, false);
171 * @param enmTag Statistics tag. Statistics are collected on a per tag
177 VMMR3DECL(int) MMR3HeapAllocExU(PUVM pUVM, MMTAG enmTag, size_t cbSize, void **ppv)
180 void *pv = mmR3HeapAlloc(pUVM->mm.s.pHeap, enmTag, cbSize, false);
195 * @param enmTag Statistics tag. Statistics are collected on a per tag
201 VMMR3DECL(int) MMR3HeapAllocEx(PVM pVM, MMTAG enmTag, size_t cbSize, void **ppv)
203 void *pv = mmR3HeapAlloc(pVM->pUVM->mm.s.pHeap, enmTag, cbSize, false);
218 * @param enmTag Statistics tag. Statistics are collected on a per tag
223 VMMR3DECL(void *) MMR3HeapAllocZU(PUVM pUVM, MMTAG enmTag, size_t cbSize)
225 return mmR3HeapAlloc(pUVM->mm.s.pHeap, enmTag, cbSize, true);
234 * @param enmTag Statistics tag. Statistics are collected on a per tag
239 VMMR3DECL(void *) MMR3HeapAllocZ(PVM pVM, MMTAG enmTag, size_t cbSize)
241 return mmR3HeapAlloc(pVM->pUVM->mm.s.pHeap, enmTag, cbSize, true);
250 * @param enmTag Statistics tag. Statistics are collected on a per tag
256 VMMR3DECL(int) MMR3HeapAllocZExU(PUVM pUVM, MMTAG enmTag, size_t cbSize, void **ppv)
259 void *pv = mmR3HeapAlloc(pUVM->mm.s.pHeap, enmTag, cbSize, true);
274 * @param enmTag Statistics tag. Statistics are collected on a per tag
280 VMMR3DECL(int) MMR3HeapAllocZEx(PVM pVM, MMTAG enmTag, size_t cbSize, void **ppv)
282 void *pv = mmR3HeapAlloc(pVM->pUVM->mm.s.pHeap, enmTag, cbSize, true);
297 * @param enmTag Statistics tag. Statistics are collected on a per tag
303 void *mmR3HeapAlloc(PMMHEAP pHeap, MMTAG enmTag, size_t cbSize, bool fZero)
312 PMMHEAPSTAT pStat = (PMMHEAPSTAT)RTAvlULGet(&pHeap->pStatTree, (AVLULKEY)enmTag);
329 pStat->Core.Key = (AVLULKEY)enmTag;
338 const char *pszTag = mmGetTagName(enmTag);
370 AssertMsgFailed(("Failed to allocate heap block %d, enmTag=%x(%.4s).\n", cbSize, enmTag, &enmTag));
518 * @param enmTag Statistics tag. Statistics are collected on a per tag
523 VMMR3DECL(char *) MMR3HeapStrDupU(PUVM pUVM, MMTAG enmTag, const char *psz)
530 char *pszDup = (char *)MMR3HeapAllocU(pUVM, enmTag, cch);
543 * @param enmTag Statistics tag. Statistics are collected on a per tag
548 VMMR3DECL(char *) MMR3HeapStrDup(PVM pVM, MMTAG enmTag, const char *psz)
550 return MMR3HeapStrDupU(pVM->pUVM, enmTag, psz);
559 * @param enmTag The statistics tag.
563 VMMR3DECL(char *) MMR3HeapAPrintf(PVM pVM, MMTAG enmTag, const char *pszFormat, ...)
567 char *psz = MMR3HeapAPrintfVU(pVM->pUVM, enmTag, pszFormat, va);
578 * @param enmTag The statistics tag.
582 VMMR3DECL(char *) MMR3HeapAPrintfU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, ...)
586 char *psz = MMR3HeapAPrintfVU(pUVM, enmTag, pszFormat, va);
597 * @param enmTag The statistics tag.
601 VMMR3DECL(char *) MMR3HeapAPrintfV(PVM pVM, MMTAG enmTag, const char *pszFormat, va_list va)
603 return MMR3HeapAPrintfVU(pVM->pUVM, enmTag, pszFormat, va);
612 * @param enmTag The statistics tag.
616 VMMR3DECL(char *) MMR3HeapAPrintfVU(PUVM pUVM, MMTAG enmTag, const char *pszFormat, va_list va)
626 char *pszRet = (char *)MMR3HeapAllocU(pUVM, enmTag, cch + 1);