Skip to contentSkip to conversation

infiniband-diags/src/ibqueryerrors: Add clear errors and counters options

PATCH New Ira Weiny 1 participant 1 message Sep 30, 2009 InfiniBand

lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH v3 1/1 infiniband-diags/src/ibqueryerrors: Add clear errors and counters options

The only difference is that this now applies to the current master.

There were a couple of changes you made to the previous patches I submitted so I thought I would make it easy on you and send a version which applies cleanly.

Thanks,
Ira

From: Ira Weiny <[email protected]>
Date: Thu, 24 Sep 2009 20:39:29 -0700
Subject: [PATCH] infiniband-diags/src/ibqueryerrors: Add clear errors and counters options

V2 add check for XMT_WAIT support on clear

Add -k and -K options to clear errors and counters. If both are specified they will both be cleared.

Update man page

In addition fix 2 bugs
fix the printing of Xmt Wait errors
properly skip the counter select field.

---
 infiniband-diags/man/ibqueryerrors.8 |   20 +++++--
 infiniband-diags/src/ibqueryerrors.c |   94 ++++++++++++++++++++++++++++++----
 2 files changed, 97 insertions(+), 17 deletions(-)
infiniband-diags/man/ibqueryerrors.8 +14 -6
index a85082c..1352246 100644
@@ -6,15 +6,14 @@ ibqueryerrors.pl \- query and report non-zero IB port counters
 .SH SYNOPSIS
 .B ibqueryerrors.pl
 [-s <err1,err2,...> -c -r -C <ca_name> -P <ca_port> -G <node_guid>
--D <direct_route> -d]
+-D <direct_route> -d -k -K]
 
 .SH DESCRIPTION
 .PP
-ibqueryerrors.pl reports the port counters of switches.  This is similar to
-ibcheckerrors with the additional ability to filter out selected errors,
-include the optional transmit and receive data counters, report actions to
-remedy a non-zero count, and report full link information for the link
-reported.
+ibqueryerrors.pl reports port counters.  This is similar to ibcheckerrors with
+the additional ability to filter out selected errors, include the optional
+transmit and receive data counters, and report full link information for the
+link reported.
 
 .SH OPTIONS
 
@@ -50,6 +49,15 @@ Include the optional transmit and receive data counters.
 .TP
 \fB\-\-router\fR  print data for routers only
 .TP
+\fB\-\-clear\-errors\fR \fB\-k\fR Clear error counters after read.
+\-k and \-K can be used together to clear both errors and counters.
+.TP
+\fB\-\-clear\-counts\fR \fB\-K\fR Clear data counters after read.
+\fBCAUTION\fR clearing data counters will occur regardless of if they are
+printed or not.  This is because data counters are only \fBprinted\fR on ports
+which have errors.  This means if a port has 0 errors and the \-K option is
+specified the data counters will be cleared without any printed output.
+.TP
 \fB\-R\fR  (This option is obsolete and does nothing)
 
 .SH COMMON OPTIONS
infiniband-diags/src/ibqueryerrors.c +83 -11

164 lines not on this page · raw message

Signature · 6 lines
1.5.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html