Changeset 51420 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- May 27, 2014 9:08:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp
r51251 r51420 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)94 90 95 91 … … 132 128 virtual IOService *probe(IOService *pProvider, SInt32 *pi32Score); 133 129 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;136 130 }; 137 131 … … 162 156 virtual bool finalize(IOOptionBits fOptions); 163 157 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;166 158 }; 167 159 … … 1363 1355 1364 1356 1365 void org_virtualbox_SupDrv::taggedRetain(const void *pTag) const1366 {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) const1374 {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 1380 1357 /* 1381 1358 * … … 1612 1589 } 1613 1590 1614 1615 void org_virtualbox_SupDrvClient::taggedRetain(const void *pTag) const1616 {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) const1624 {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.