VirtualBox

Changeset 37745 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Jul 4, 2011 5:10:47 AM (13 years ago)
Author:
vboxsync
Message:

NAT/debug: tracing of sbuf socket operations.

File:
1 edited

Legend:

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

    r37743 r37745  
    153153
    154154    LogFlow(("soread: so = %R[natsock]\n", so));
     155    Log2(("%s: so = %R[natsock] so->so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb));
    155156
    156157    /*
     
    220221#endif
    221222    Log2(("%s: read(1) nn = %d bytes\n", __PRETTY_FUNCTION__, nn));
     223    Log2(("%s: so = %R[natsock] so->so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb));
    222224    if (nn <= 0)
    223225    {
     
    305307    sb->sb_cc += nn;
    306308    sb->sb_wptr += nn;
     309    Log2(("%s: update so_snd (readed nn = %d) %R[sbuf]\n", __PRETTY_FUNCTION__, nn, so, sb));
    307310    if (sb->sb_wptr >= (sb->sb_data + sb->sb_datalen))
     311    {
    308312        sb->sb_wptr -= sb->sb_datalen;
     313        Log2(("%s: alter sb_wptr  so_snd = %R[sbuf]\n", __PRETTY_FUNCTION__, nn, so, sb));
     314    }
    309315    STAM_PROFILE_STOP(&pData->StatIOread, a);
    310316    SOCKET_UNLOCK(so);
     
    506512    STAM_COUNTER_RESET(&pData->StatIOWrite_rest);
    507513    STAM_COUNTER_RESET(&pData->StatIOWrite_rest_bytes);
    508     LogFlow(("sowrite: so = %lx\n", (long)so));
     514    LogFlowFunc(("so = %R[natsock]\n", so));
     515    Log2(("%s: so = %R[natsock] so->so_rcv = %R[sbuf]\n", __PRETTY_FUNCTION__, so, sb));
    509516    QSOCKET_LOCK(tcb);
    510517    SOCKET_LOCK(so);
     
    619626    sb->sb_cc -= nn;
    620627    sb->sb_rptr += nn;
     628    Log2(("%s: update so_rcv (written nn = %d) %R[sbuf]\n", __PRETTY_FUNCTION__, sb, nn));
    621629    if (sb->sb_rptr >= (sb->sb_data + sb->sb_datalen))
     630    {
    622631        sb->sb_rptr -= sb->sb_datalen;
     632        Log2(("%s: alter sb_rptr of so_rcv %R[sbuf]\n", __PRETTY_FUNCTION__, sb));
     633    }
    623634
    624635    /*
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