PERFORCE change 132994 for review
Steve Wise
swise at FreeBSD.org
Thu Jan 10 15:09:07 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=132994
Change 132994 by swise at 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,
More information about the p4-projects
mailing list