VirtualBox

Changeset 91482 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 30, 2021 12:12:26 AM (3 years ago)
Author:
vboxsync
Message:

IPRT/memobj: Passing pszTag around...

Location:
trunk/src/VBox/Runtime
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/memobj.h

    r91481 r91482  
    357357 *                          and RTMEM_PROT_WRITE.
    358358 * @param   R0Process       The process to lock pages in.
    359  */
    360 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process);
     359 * @param   pszTag          Allocation tag used for statistics and such.
     360 */
     361DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
     362                                         RTR0PROCESS R0Process, const char *pszTag);
    361363
    362364/**
     
    369371 * @param   fAccess         The desired access, a combination of RTMEM_PROT_READ
    370372 *                          and RTMEM_PROT_WRITE.
    371  */
    372 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess);
     373 * @param   pszTag          Allocation tag used for statistics and such.
     374 */
     375DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag);
    373376
    374377/**
  • trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp

    r91481 r91482  
    911911        rc = rtR0MemObjNativeAllocWorker(ppMem, cb, false /* fExecutable */, true /* fContiguous */,
    912912                                         uAlignment <= PAGE_SIZE ? 0 : ~(mach_vm_address_t)(uAlignment - 1) /* PhysMask*/,
    913                                          UINT64_MAX, RTR0MEMOBJTYPE_PHYS, uAlignment, NULL, false /*fOnKernelThread*/);
     913                                         UINT64_MAX, RTR0MEMOBJTYPE_PHYS, uAlignment, pszTag, false /*fOnKernelThread*/);
    914914    else
    915915    {
     
    923923        rc = rtR0MemObjNativeAllocWorker(ppMem, cb, false /* fExecutable */, true /* fContiguous */,
    924924                                         PhysMask, PhysHighest,
    925                                          RTR0MEMOBJTYPE_PHYS, uAlignment, NULL, false /*fOnKernelThread*/);
     925                                         RTR0MEMOBJTYPE_PHYS, uAlignment, pszTag, false /*fOnKernelThread*/);
    926926    }
    927927
     
    10081008 *                          and RTMEM_PROT_WRITE.
    10091009 * @param   Task            The task \a pv and \a cb refers to.
    1010  */
    1011 static int rtR0MemObjNativeLock(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, task_t Task)
     1010 * @param   pszTag          Allocation tag used for statistics and such.
     1011 */
     1012static int rtR0MemObjNativeLock(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, task_t Task,
     1013                                const char *pszTag)
    10121014{
    10131015    IPRT_DARWIN_SAVE_EFL_AC();
     
    10311033         * Create the IPRT memory object.
    10321034         */
    1033         PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     1035        PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_LOCK, pv, cb, pszTag);
    10341036        if (pMemDarwin)
    10351037        {
     
    10611063             * Create the IPRT memory object.
    10621064             */
    1063             PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     1065            PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_LOCK,
     1066                                                                            pv, cb, pszTag);
    10641067            if (pMemDarwin)
    10651068            {
     
    10851088
    10861089
    1087 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process)
    1088 {
    1089     return rtR0MemObjNativeLock(ppMem, (void *)R3Ptr, cb, fAccess, (task_t)R0Process);
    1090 }
    1091 
    1092 
    1093 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
    1094 {
    1095     return rtR0MemObjNativeLock(ppMem, pv, cb, fAccess, kernel_task);
     1090DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
     1091                                         RTR0PROCESS R0Process, const char *pszTag)
     1092{
     1093    return rtR0MemObjNativeLock(ppMem, (void *)R3Ptr, cb, fAccess, (task_t)R0Process, pszTag);
     1094}
     1095
     1096
     1097DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
     1098{
     1099    return rtR0MemObjNativeLock(ppMem, pv, cb, fAccess, kernel_task, pszTag);
    10961100}
    10971101
  • trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c

    r91481 r91482  
    506506static int rtR0MemObjNativeLockInMap(PPRTR0MEMOBJINTERNAL ppMem, vm_map_t pVmMap,
    507507                                     vm_offset_t AddrStart, size_t cb, uint32_t fAccess,
    508                                      RTR0PROCESS R0Process, int fFlags)
     508                                     RTR0PROCESS R0Process, int fFlags, const char *pszTag)
    509509{
    510510    int rc;
     
    513513    /* create the object. */
    514514    PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_LOCK,
    515                                                                        (void *)AddrStart, cb, NULL);
     515                                                                       (void *)AddrStart, cb, pszTag);
    516516    if (!pMemFreeBSD)
    517517        return VERR_NO_MEMORY;
     
    536536
    537537
    538 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process)
     538DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
     539                                         RTR0PROCESS R0Process, const char *pszTag)
    539540{
    540541    return rtR0MemObjNativeLockInMap(ppMem,
     
    544545                                     fAccess,
    545546                                     R0Process,
    546                                      VM_MAP_WIRE_USER | VM_MAP_WIRE_NOHOLES);
    547 }
    548 
    549 
    550 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
     547                                     VM_MAP_WIRE_USER | VM_MAP_WIRE_NOHOLES,
     548                                     pszTag);
     549}
     550
     551
     552DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
    551553{
    552554    return rtR0MemObjNativeLockInMap(ppMem,
     
    556558                                     fAccess,
    557559                                     NIL_RTR0PROCESS,
    558                                      VM_MAP_WIRE_SYSTEM | VM_MAP_WIRE_NOHOLES);
     560                                     VM_MAP_WIRE_SYSTEM | VM_MAP_WIRE_NOHOLES,
     561                                     pszTag);
    559562}
    560563
  • trunk/src/VBox/Runtime/r0drv/haiku/memobj-r0drv-haiku.c

    r91481 r91482  
    308308 *
    309309 * @returns IPRT status code.
    310  * @param   ppMem        Where to store the allocated memory object.
    311  * @param   pvStart      The starting address.
    312  * @param   cb           The size of the block.
    313  * @param   fAccess      The mapping protection to apply.
    314  * @param   R0Process    The process to map the memory to (use NIL_RTR0PROCESS
    315  *                       for the kernel)
    316  * @param   fFlags       Memory flags (B_READ_DEVICE indicates the memory is
    317  *                       intended to be written from a "device").
     310 * @param   ppMem       Where to store the allocated memory object.
     311 * @param   pvStart     The starting address.
     312 * @param   cb          The size of the block.
     313 * @param   fAccess     The mapping protection to apply.
     314 * @param   R0Process   The process to map the memory to (use NIL_RTR0PROCESS
     315 *                      for the kernel)
     316 * @param   fFlags      Memory flags (B_READ_DEVICE indicates the memory is
     317 *                      intended to be written from a "device").
     318 * @param   pszTag      Allocation tag used for statistics and such.
    318319 */
    319320static int rtR0MemObjNativeLockInMap(PPRTR0MEMOBJINTERNAL ppMem, void *pvStart, size_t cb, uint32_t fAccess,
    320                                      RTR0PROCESS R0Process, int fFlags)
     321                                     RTR0PROCESS R0Process, int fFlags, const char *pszTag)
    321322{
    322323    NOREF(fAccess);
    323     int rc;
    324324    team_id TeamId = B_SYSTEM_TEAM;
    325325
     
    328328
    329329    /* Create the object. */
    330     PRTR0MEMOBJHAIKU pMemHaiku = (PRTR0MEMOBJHAIKU)rtR0MemObjNew(sizeof(*pMemHaiku), RTR0MEMOBJTYPE_LOCK, pvStart, cb, NULL);
     330    PRTR0MEMOBJHAIKU pMemHaiku = (PRTR0MEMOBJHAIKU)rtR0MemObjNew(sizeof(*pMemHaiku), RTR0MEMOBJTYPE_LOCK, pvStart, cb, pszTag);
    331331    if (RT_UNLIKELY(!pMemHaiku))
    332332        return VERR_NO_MEMORY;
     
    334334    if (R0Process != NIL_RTR0PROCESS)
    335335        TeamId = (team_id)R0Process;
    336     rc = lock_memory_etc(TeamId, pvStart, cb, fFlags);
     336    int rc = lock_memory_etc(TeamId, pvStart, cb, fFlags);
    337337    if (rc == B_OK)
    338338    {
     
    347347
    348348
    349 int rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process)
    350 {
    351     return rtR0MemObjNativeLockInMap(ppMem, (void *)R3Ptr, cb, fAccess, R0Process, B_READ_DEVICE);
    352 }
    353 
    354 
    355 int rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
    356 {
    357     return rtR0MemObjNativeLockInMap(ppMem, pv, cb, fAccess, NIL_RTR0PROCESS, B_READ_DEVICE);
     349int rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process,
     350                             const char *pszTag)
     351{
     352    return rtR0MemObjNativeLockInMap(ppMem, (void *)R3Ptr, cb, fAccess, R0Process, B_READ_DEVICE, pszTag);
     353}
     354
     355
     356int rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
     357{
     358    return rtR0MemObjNativeLockInMap(ppMem, pv, cb, fAccess, NIL_RTR0PROCESS, B_READ_DEVICE, pszTag);
    358359}
    359360
  • trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c

    r91481 r91482  
    11951195#endif
    11961196
    1197 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process)
     1197DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
     1198                                         RTR0PROCESS R0Process, const char *pszTag)
    11981199{
    11991200    IPRT_LINUX_SAVE_EFL_AC();
     
    12171218     */
    12181219    pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK,
    1219                                             (void *)R3Ptr, cb, NULL);
     1220                                            (void *)R3Ptr, cb, pszTag);
    12201221    if (!pMemLnx)
    12211222    {
     
    13531354
    13541355
    1355 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
     1356DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
    13561357{
    13571358    IPRT_LINUX_SAVE_EFL_AC();
     
    13861387     * Allocate the memory object.
    13871388     */
    1388     pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     1389    pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJLNX, apPages[cPages]), RTR0MEMOBJTYPE_LOCK,
     1390                                            pv, cb, pszTag);
    13891391    if (!pMemLnx)
    13901392    {
  • trunk/src/VBox/Runtime/r0drv/memobj-r0drv.cpp

    r91481 r91482  
    536536    RT_ASSERT_PREEMPTIBLE();
    537537
    538     RT_NOREF_PV(pszTag);
    539 
    540538    /* do the locking. */
    541     return rtR0MemObjNativeLockUser(pMemObj, R3PtrAligned, cbAligned, fAccess, R0Process);
     539    return rtR0MemObjNativeLockUser(pMemObj, R3PtrAligned, cbAligned, fAccess, R0Process, pszTag);
    542540}
    543541RT_EXPORT_SYMBOL(RTR0MemObjLockUserTag);
     
    558556    RT_ASSERT_PREEMPTIBLE();
    559557
    560     RT_NOREF_PV(pszTag);
    561 
    562558    /* do the allocation. */
    563     return rtR0MemObjNativeLockKernel(pMemObj, pvAligned, cbAligned, fAccess);
     559    return rtR0MemObjNativeLockKernel(pMemObj, pvAligned, cbAligned, fAccess, pszTag);
    564560}
    565561RT_EXPORT_SYMBOL(RTR0MemObjLockKernelTag);
  • trunk/src/VBox/Runtime/r0drv/netbsd/memobj-r0drv-netbsd.c

    r91481 r91482  
    368368
    369369
    370 DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process)
    371 {
    372     PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, NULL);
     370DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
     371                                         RTR0PROCESS R0Process, const char *pszTag)
     372{
     373    PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_LOCK,
     374                                                                    (void *)R3Ptr, cb, pszTag);
    373375    if (!pMemNetBSD)
    374376        return VERR_NO_MEMORY;
     
    391393
    392394
    393 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
     395DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
    394396{
    395397    /* Kernel memory (always?) wired; all memory allocated by vbox code is? */
    396     PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     398    PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_LOCK, pv, cb, pszTag);
    397399    if (!pMemNetBSD)
    398400        return VERR_NO_MEMORY;
  • trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp

    r91481 r91482  
    759759 *                          and RTMEM_PROT_WRITE.
    760760 * @param   R0Process       The process \a pv and \a cb refers to.
     761 * @param   pszTag          Allocation tag used for statistics and such.
    761762 */
    762 static int rtR0MemObjNtLock(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process)
     763static int rtR0MemObjNtLock(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, RTR0PROCESS R0Process,
     764                            const char *pszTag)
    763765{
    764766    /*
     
    771773        return VERR_OUT_OF_RANGE;
    772774    PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJNT, apMdls[cMdls]),
    773                                                         RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     775                                                        RTR0MEMOBJTYPE_LOCK, pv, cb, pszTag);
    774776    if (!pMemNt)
    775777        return VERR_NO_MEMORY;
     
    871873
    872874DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
    873                                          RTR0PROCESS R0Process)
     875                                         RTR0PROCESS R0Process, const char *pszTag)
    874876{
    875877    AssertMsgReturn(R0Process == RTR0ProcHandleSelf(), ("%p != %p\n", R0Process, RTR0ProcHandleSelf()), VERR_NOT_SUPPORTED);
    876878    /* (Can use MmProbeAndLockProcessPages if we need to mess with other processes later.) */
    877     return rtR0MemObjNtLock(ppMem, (void *)R3Ptr, cb, fAccess, R0Process);
    878 }
    879 
    880 
    881 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
    882 {
    883     return rtR0MemObjNtLock(ppMem, pv, cb, fAccess, NIL_RTR0PROCESS);
     879    return rtR0MemObjNtLock(ppMem, (void *)R3Ptr, cb, fAccess, R0Process, pszTag);
     880}
     881
     882
     883DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
     884{
     885    return rtR0MemObjNtLock(ppMem, pv, cb, fAccess, NIL_RTR0PROCESS, pszTag);
    884886}
    885887
  • trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp

    r91481 r91482  
    287287
    288288DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
    289                                          RTR0PROCESS R0Process)
     289                                         RTR0PROCESS R0Process, const char *pszTag)
    290290{
    291291    AssertMsgReturn(R0Process == RTR0ProcHandleSelf(), ("%p != %p\n", R0Process, RTR0ProcHandleSelf()), VERR_NOT_SUPPORTED);
     
    294294    const ULONG cPages = cb >> PAGE_SHIFT;
    295295    PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJOS2, aPages[cPages]),
    296                                                            RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, NULL);
     296                                                           RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, pszTag);
    297297    if (!pMemOs2)
    298298        return VERR_NO_MEMORY;
     
    316316
    317317
    318 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
     318DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
    319319{
    320320    /* create the object. */
    321321    const ULONG cPages = cb >> PAGE_SHIFT;
    322322    PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF_DYN(RTR0MEMOBJOS2, aPages[cPages]),
    323                                                            RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     323                                                           RTR0MEMOBJTYPE_LOCK, pv, cb, pszTag);
    324324    if (!pMemOs2)
    325325        return VERR_NO_MEMORY;
  • trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c

    r91481 r91482  
    857857
    858858DECLHIDDEN(int) rtR0MemObjNativeLockUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3Ptr, size_t cb, uint32_t fAccess,
    859                                          RTR0PROCESS R0Process)
     859                                         RTR0PROCESS R0Process, const char *pszTag)
    860860{
    861861    AssertReturn(R0Process == RTR0ProcHandleSelf(), VERR_INVALID_PARAMETER);
     
    863863
    864864    /* Create the locking object */
    865     PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb, NULL);
     865    PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOCK,
     866                                                               (void *)R3Ptr, cb, pszTag);
    866867    if (!pMemSolaris)
    867868        return VERR_NO_MEMORY;
     
    890891
    891892
    892 DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess)
     893DECLHIDDEN(int) rtR0MemObjNativeLockKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pv, size_t cb, uint32_t fAccess, const char *pszTag)
    893894{
    894895    NOREF(fAccess);
    895896
    896     PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOCK, pv, cb, NULL);
     897    PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOCK, pv, cb, pszTag);
    897898    if (!pMemSolaris)
    898899        return VERR_NO_MEMORY;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette