Changeset 51251 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- May 14, 2014 9:44:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r51100 r51251 88 88 #define DEVICE_NAME_USR "vboxdrvu" 89 89 90 /* Temporary debugging. */ 91 #define VBOX_PROC_SELFNAME_LEN (20) 92 #define VBOX_RETRIEVE_CUR_PROC_NAME(_name) char _name[VBOX_PROC_SELFNAME_LEN]; \ 93 proc_selfname(pszProcName, VBOX_PROC_SELFNAME_LEN) 90 94 91 95 … … 128 132 virtual IOService *probe(IOService *pProvider, SInt32 *pi32Score); 129 133 virtual bool terminate(IOOptionBits fOptions); 134 virtual void taggedRetain(const void *pTag=0) const; 135 virtual void taggedRelease(const void *pTag, const int freeWhen) const; 130 136 }; 131 137 … … 156 162 virtual bool finalize(IOOptionBits fOptions); 157 163 virtual void stop(IOService *pProvider); 164 virtual void taggedRetain(const void *pTag=0) const; 165 virtual void taggedRelease(const void *pTag, const int freeWhen) const; 158 166 }; 159 167 … … 1355 1363 1356 1364 1365 void org_virtualbox_SupDrv::taggedRetain(const void *pTag) const 1366 { 1367 VBOX_RETRIEVE_CUR_PROC_NAME(pszProcName); 1368 LogRel(("org_virtualbox_SupDrv::taggedRetain([%p], pTag=[%p]) (1) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1369 IOService::taggedRetain(pTag); 1370 LogRel(("org_virtualbox_SupDrv::taggedRetain([%p], pTag=[%p]) (2) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1371 } 1372 1373 void org_virtualbox_SupDrv::taggedRelease(const void *pTag, const int freeWhen) const 1374 { 1375 VBOX_RETRIEVE_CUR_PROC_NAME(pszProcName); 1376 LogRel(("org_virtualbox_SupDrv::taggedRelease([%p], pTag=[%p], freeWhen=[%d]) pszProcName=[%s] [retain count: %d]\n", this, pTag, freeWhen, pszProcName, getRetainCount())); 1377 IOService::taggedRelease(pTag, freeWhen); 1378 } 1379 1357 1380 /* 1358 1381 * … … 1589 1612 } 1590 1613 1614 1615 void org_virtualbox_SupDrvClient::taggedRetain(const void *pTag) const 1616 { 1617 VBOX_RETRIEVE_CUR_PROC_NAME(pszProcName); 1618 LogRel(("org_virtualbox_SupDrvClient::taggedRetain([%p], pTag=[%p]) (1) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1619 IOUserClient::taggedRetain(pTag); 1620 LogRel(("org_virtualbox_SupDrvClient::taggedRetain([%p], pTag=[%p]) (2) pszProcName=[%s] [retain count: %d]\n", this, pTag, pszProcName, getRetainCount())); 1621 } 1622 1623 void org_virtualbox_SupDrvClient::taggedRelease(const void *pTag, const int freeWhen) const 1624 { 1625 VBOX_RETRIEVE_CUR_PROC_NAME(pszProcName); 1626 LogRel(("org_virtualbox_SupDrvClient::taggedRelease([%p], pTag=[%p], freeWhen=[%d]) pszProcName=[%s] [retain count: %d]\n", this, pTag, freeWhen, pszProcName, getRetainCount())); 1627 IOUserClient::taggedRelease(pTag, freeWhen); 1628 }
Note:
See TracChangeset
for help on using the changeset viewer.