VirtualBox

Ignore:
Timestamp:
Feb 22, 2012 2:02:10 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76371
Message:

NAT: logging: VBOX_NAT_MEM_DEBUG control adding NAT's "uma" emulation operation into the log.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/misc.c

    r39409 r40204  
    9999}
    100100
    101 
     101#if !defined(VBOX_NAT_MEM_DEBUG) && defined(LOG_ENABLED)
     102# undef LogFlowFunc
     103# define LogFlowFunc(x)
     104
     105# undef LogFlowFuncEnter
     106# define LogFlowFuncEnter()
     107
     108# undef LogFlowFuncLeave
     109# define LogFlowFuncLeave()
     110
     111# undef Log2
     112# define Log2(x)
     113#else
     114# define NAT_MEM_LOG_ENABLED
     115#endif
    102116
    103117
     
    137151
    138152    LogFlowFunc(("ENTER: %R[mzone], size:%d, pflags:%p, %RTbool\n", zone, size, pflags, fWait));
    139 #ifndef LOG_ENABLED
     153#ifndef NAT_MEM_LOG_ENABLED
    140154    NOREF(size);
    141155    NOREF(pflags);
     
    215229    struct item *it;
    216230    uma_zone_t zone;
    217 #ifndef LOG_ENABLED
     231#ifndef NAT_MEM_LOG_ENABLED
    218232    NOREF(size);
    219233    NOREF(flags);
     
    250264{
    251265    uma_zone_t zone = NULL;
    252 #ifndef LOG_ENABLED
     266#ifndef NAT_MEM_LOG_ENABLED
    253267    NOREF(flags1);
    254268    NOREF(flags2);
     
    341355    reference counters */
    342356    struct item *it = NULL;
    343 #ifndef LOG_ENABLED
     357#ifndef NAT_MEM_LOG_ENABLED
    344358    NOREF(zone);
    345359#endif
     
    357371{
    358372    void *mem;
    359 #ifndef LOG_ENABLED
     373#ifndef NAT_MEM_LOG_ENABLED
    360374    NOREF(how);
    361375#endif
     
    393407    Assert((mem));
    394408    LogFlowFunc(("ENTER: zone:%R[mzone], mem:%p, flags:%p\n", zone, mem, flags));
    395 #ifndef LOG_ENABLED
     409#ifndef NAT_MEM_LOG_ENABLED
    396410    NOREF(flags);
    397411#endif
     
    453467    LogFlowFunc(("ENTER: mem:%p, arg:%p\n", mem, arg));
    454468    Assert(mem);
    455 #ifndef LOG_ENABLED
     469#ifndef NAT_MEM_LOG_ENABLED
    456470    NOREF(arg);
    457471#endif
     
    462476void *uma_zalloc(uma_zone_t zone, int len)
    463477{
    464 #ifndef LOG_ENABLED
     478#ifndef NAT_MEM_LOG_ENABLED
    465479    NOREF(zone);
    466480    NOREF(len);
Note: See TracChangeset for help on using the changeset viewer.

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