Lines Matching refs:stats
37 uint64_t stats[2][8]; member
138 bcopy(&(dev->stats[1][0]), &(dev->stats[0][0]), sizeof(dev->stats[0])); in update_dev_stats()
141 if (!kstat_get(ksp, "rbytes64", &dev->stats[1][0]) || in update_dev_stats()
142 !kstat_get(ksp, "ipackets64", &dev->stats[1][1]) || in update_dev_stats()
143 !kstat_get(ksp, "ierrors", &dev->stats[1][2]) || in update_dev_stats()
144 !kstat_get(ksp, "obytes64", &dev->stats[1][3]) || in update_dev_stats()
145 !kstat_get(ksp, "opackets64", &dev->stats[1][4]) || in update_dev_stats()
146 !kstat_get(ksp, "oerrors", &dev->stats[1][5])) in update_dev_stats()
149 dev->stats[1][6] = 0; in update_dev_stats()
150 dev->stats[1][7] = 0; in update_dev_stats()
152 if (!kstat_get(ksp, "rd_reqs", &dev->stats[1][0]) || in update_dev_stats()
153 !kstat_get(ksp, "wr_reqs", &dev->stats[1][1]) || in update_dev_stats()
154 !kstat_get(ksp, "oo_reqs", &dev->stats[1][2])) in update_dev_stats()
196 net->rbytes = dev->stats[1][0] - dev->stats[0][0]; in update_nic()
197 net->rpackets = dev->stats[1][1] - dev->stats[0][1]; in update_nic()
198 net->rerrs = dev->stats[1][2] - dev->stats[0][2]; in update_nic()
199 net->tbytes = dev->stats[1][3] - dev->stats[0][3]; in update_nic()
200 net->tpackets = dev->stats[1][4] - dev->stats[0][4]; in update_nic()
201 net->terrs = dev->stats[1][5] - dev->stats[0][5]; in update_nic()
202 net->rdrop = dev->stats[1][6] - dev->stats[0][6]; in update_nic()
203 net->tdrop = dev->stats[1][7] - dev->stats[0][7]; in update_nic()
308 vbd->rd_reqs = dev->stats[1][0] - dev->stats[0][0]; in update_xdb()
309 vbd->wr_reqs = dev->stats[1][1] - dev->stats[0][1]; in update_xdb()
310 vbd->oo_reqs = dev->stats[1][2] - dev->stats[0][2]; in update_xdb()