Is it possible to write a dtrace script which can tell me the number of mblks, 
and total chain length, upon entry to a function (gldv3 nic driver's xmit 
function).  I naively tried to iterate over mp->b_cont, but there is no while 
or for in dtrace..
Eg, what I want to do is:

        for (pkt_size=0, count=0,bp = mp; bp != NULL; bp = bp->b_cont) {
                pkt_size += (int)(bp->b_wptr - bp->b_rptr);
                count++;
        }

(if it makes any difference I'm using a mix of snv_b86 and snv_b90)

Thanks,

Drew


--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
[email protected]

Reply via email to