Date: Thu, 10 Jan 2008 23:09:06 GMT From: Steve Wise <swise@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 132994 for review Message-ID: <200801102309.m0AN96Mc028370@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132994 Change 132994 by swise@swise:vic10:iwarp on 2008/01/10 23:08:37 cleaned up the output of reading /dev/krping - formatting - make stats 32b to save columns Affected files ... .. //depot/projects/iwarp/sys/contrib/rdma/krping/krping.h#3 edit .. //depot/projects/iwarp/sys/contrib/rdma/krping/krping_dev.c#3 edit Differences ... ==== //depot/projects/iwarp/sys/contrib/rdma/krping/krping.h#3 (text+ko) ==== @@ -6,14 +6,14 @@ */ struct krping_stats { - unsigned long long send_bytes; - unsigned long long send_msgs; - unsigned long long recv_bytes; - unsigned long long recv_msgs; - unsigned long long write_bytes; - unsigned long long write_msgs; - unsigned long long read_bytes; - unsigned long long read_msgs; + unsigned send_bytes; + unsigned send_msgs; + unsigned recv_bytes; + unsigned recv_msgs; + unsigned write_bytes; + unsigned write_msgs; + unsigned read_bytes; + unsigned read_msgs; }; #define htonll(x) cpu_to_be64((x)) ==== //depot/projects/iwarp/sys/contrib/rdma/krping/krping_dev.c#3 (text+ko) ==== @@ -102,10 +102,13 @@ struct krping_cb *cb; int num=1; + uprintf("krping: %4s %10s %10s %10s %10s %10s %10s %10s %10s %10s\n", + "num", "device", "snd bytes", "snd msgs", "rcv bytes", "rcv msgs", + "wr bytes", "wr msgs", "rd bytes", "rd msgs"); mtx_lock(&krping_mutex); TAILQ_FOREACH(cb, &krping_cbs, list) { if (cb->pd) { - uprintf("krping: %d-%s %lld %lld %lld %lld %lld %lld %lld %lld\n", + uprintf("krping: %4d %10s %10u %10u %10u %10u %10u %10u %10u %10u\n", num++, cb->pd->device->name, cb->stats.send_bytes, cb->stats.send_msgs, cb->stats.recv_bytes, cb->stats.recv_msgs, cb->stats.write_bytes,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801102309.m0AN96Mc028370>