Hi Vishal,

This script should be working on post-crossbow e1000g driver. If your
are running on a pre-crossbow system, you can try the following script:

dtrace -n "e1000g_receive:entry{self->adapter=(e1000g_t *)arg0;}
e1000g_receive:retu...@[0]=quantize(self->adapter->rx_pkt_cnt);}"

Regards,
Ted


Hi All,

             I wrote the following script to obtain the number of packets 
processed per interrupt by the driver:

dtrace -n "e1000g_receive:entry{self->adapter=(e1000g_t *)((e1000g_rx_ring_t *)arg0)->adapter;}
e1000g_receive:retu...@[0]=quantize(self->adapter->rx_pkt_cnt);}"

Just to test, I removed the 'quantize' function, and added print statements to 
see the 'rx_pkt_cnt' upon entry and return, and both the values turn out to be 
the same. Can someone please suggest what is amiss here.

Thank you,
Vish.
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to