VirtualBox

Changeset 51420 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
May 27, 2014 9:08:51 AM (11 years ago)
Author:
vboxsync
Message:

Revert r93697: temporary instrumentation for VBoxDRV.kext.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r51251 r51420  
    8888#define DEVICE_NAME_USR     "vboxdrvu"
    8989
    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)
    9490
    9591
     
    132128    virtual IOService *probe(IOService *pProvider, SInt32 *pi32Score);
    133129    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;
    136130};
    137131
     
    162156    virtual bool finalize(IOOptionBits fOptions);
    163157    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;
    166158};
    167159
     
    13631355
    13641356
    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 
    13801357/*
    13811358 *
     
    16121589}
    16131590
    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.

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