|
|
07a51b |
From f0596659bb2ba71bbe6ec80df9d54ea02775f40f Mon Sep 17 00:00:00 2001
|
|
|
07a51b |
From: Andrea Claudi <aclaudi@redhat.com>
|
|
|
07a51b |
Date: Thu, 23 Apr 2020 12:47:12 +0200
|
|
|
07a51b |
Subject: [PATCH] man: rdma-statistic: Add filter description
|
|
|
07a51b |
|
|
|
07a51b |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1786565
|
|
|
07a51b |
Upstream Status: iproute2.git commit 31824e2299bf5
|
|
|
07a51b |
|
|
|
07a51b |
commit 31824e2299bf5dc609026436db629b0c25cc1a10
|
|
|
07a51b |
Author: Andrea Claudi <aclaudi@redhat.com>
|
|
|
07a51b |
Date: Fri Feb 28 18:36:25 2020 +0100
|
|
|
07a51b |
|
|
|
07a51b |
man: rdma-statistic: Add filter description
|
|
|
07a51b |
|
|
|
07a51b |
Add description for filters on rdma statistics show command.
|
|
|
07a51b |
Also add a filter description on the help message of the command.
|
|
|
07a51b |
Additionally, fix some whitespace issue in the man page.
|
|
|
07a51b |
|
|
|
07a51b |
Reported-by: Zhaojuan Guo <zguo@redhat.com>
|
|
|
07a51b |
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
|
|
|
07a51b |
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
|
|
|
07a51b |
---
|
|
|
07a51b |
man/man8/rdma-statistic.8 | 16 ++++++++++++----
|
|
|
07a51b |
rdma/stat.c | 1 +
|
|
|
07a51b |
2 files changed, 13 insertions(+), 4 deletions(-)
|
|
|
07a51b |
|
|
|
07a51b |
diff --git a/man/man8/rdma-statistic.8 b/man/man8/rdma-statistic.8
|
|
|
07a51b |
index dea6ff24b499b..cd85ca46993a0 100644
|
|
|
07a51b |
--- a/man/man8/rdma-statistic.8
|
|
|
07a51b |
+++ b/man/man8/rdma-statistic.8
|
|
|
07a51b |
@@ -9,7 +9,7 @@ rdma-statistic \- RDMA statistic counter configuration
|
|
|
07a51b |
.B rdma
|
|
|
07a51b |
.RI "[ " OPTIONS " ]"
|
|
|
07a51b |
.B statistic
|
|
|
07a51b |
-.RI " { " COMMAND " | "
|
|
|
07a51b |
+.RI "{ " COMMAND " | "
|
|
|
07a51b |
.BR help " }"
|
|
|
07a51b |
.sp
|
|
|
07a51b |
|
|
|
07a51b |
@@ -23,6 +23,7 @@ rdma-statistic \- RDMA statistic counter configuration
|
|
|
07a51b |
.RI "[ " OBJECT " ]"
|
|
|
07a51b |
.B show link
|
|
|
07a51b |
.RI "[ " DEV/PORT_INDX " ]"
|
|
|
07a51b |
+.RI "[ " FILTER_NAME " " FILTER_VALUE " ]"
|
|
|
07a51b |
|
|
|
07a51b |
.ti -8
|
|
|
07a51b |
.B rdma statistic
|
|
|
07a51b |
@@ -34,7 +35,7 @@ rdma-statistic \- RDMA statistic counter configuration
|
|
|
07a51b |
.IR OBJECT
|
|
|
07a51b |
.B set
|
|
|
07a51b |
.IR COUNTER_SCOPE
|
|
|
07a51b |
-.RI "[ " DEV/PORT_INDEX "]"
|
|
|
07a51b |
+.RI "[ " DEV/PORT_INDEX " ]"
|
|
|
07a51b |
.B auto
|
|
|
07a51b |
.RI "{ " CRITERIA " | "
|
|
|
07a51b |
.BR off " }"
|
|
|
07a51b |
@@ -44,7 +45,7 @@ rdma-statistic \- RDMA statistic counter configuration
|
|
|
07a51b |
.IR OBJECT
|
|
|
07a51b |
.B bind
|
|
|
07a51b |
.IR COUNTER_SCOPE
|
|
|
07a51b |
-.RI "[ " DEV/PORT_INDEX "]"
|
|
|
07a51b |
+.RI "[ " DEV/PORT_INDEX " ]"
|
|
|
07a51b |
.RI "[ " OBJECT-ID " ]"
|
|
|
07a51b |
.RI "[ " COUNTER-ID " ]"
|
|
|
07a51b |
|
|
|
07a51b |
@@ -53,7 +54,7 @@ rdma-statistic \- RDMA statistic counter configuration
|
|
|
07a51b |
.IR OBJECT
|
|
|
07a51b |
.B unbind
|
|
|
07a51b |
.IR COUNTER_SCOPE
|
|
|
07a51b |
-.RI "[ " DEV/PORT_INDEX "]"
|
|
|
07a51b |
+.RI "[ " DEV/PORT_INDEX " ]"
|
|
|
07a51b |
.RI "[ " COUNTER-ID " ]"
|
|
|
07a51b |
.RI "[ " OBJECT-ID " ]"
|
|
|
07a51b |
|
|
|
07a51b |
@@ -69,6 +70,10 @@ rdma-statistic \- RDMA statistic counter configuration
|
|
|
07a51b |
.IR CRITERIA " := "
|
|
|
07a51b |
.RB "{ " type " }"
|
|
|
07a51b |
|
|
|
07a51b |
+.ti -8
|
|
|
07a51b |
+.IR FILTER_NAME " := "
|
|
|
07a51b |
+.RB "{ " cntn " | " lqpn " | " pid " }"
|
|
|
07a51b |
+
|
|
|
07a51b |
.SH "DESCRIPTION"
|
|
|
07a51b |
.SS rdma statistic [object] show - Queries the specified RDMA device for RDMA and driver-specific statistics. Show the default hw counters if object is not specified
|
|
|
07a51b |
|
|
|
07a51b |
@@ -79,6 +84,9 @@ rdma-statistic \- RDMA statistic counter configuration
|
|
|
07a51b |
.I "PORT_INDEX"
|
|
|
07a51b |
- specifies counters on this RDMA port to show.
|
|
|
07a51b |
|
|
|
07a51b |
+.I "FILTER_NAME
|
|
|
07a51b |
+- specifies a filter to show only the results matching it.
|
|
|
07a51b |
+
|
|
|
07a51b |
.SS rdma statistic <object> set - configure counter statistic auto-mode for a specific device/port
|
|
|
07a51b |
In auto mode all objects belong to one category are bind automatically to a single counter set.
|
|
|
07a51b |
|
|
|
07a51b |
diff --git a/rdma/stat.c b/rdma/stat.c
|
|
|
07a51b |
index ef0bbcf147a70..cd99b7ace73fc 100644
|
|
|
07a51b |
--- a/rdma/stat.c
|
|
|
07a51b |
+++ b/rdma/stat.c
|
|
|
07a51b |
@@ -22,6 +22,7 @@ static int stat_help(struct rd *rd)
|
|
|
07a51b |
pr_out("where OBJECT: = { qp }\n");
|
|
|
07a51b |
pr_out(" CRITERIA : = { type }\n");
|
|
|
07a51b |
pr_out(" COUNTER_SCOPE: = { link | dev }\n");
|
|
|
07a51b |
+ pr_out(" FILTER_NAME: = { cntn | lqpn | pid }\n");
|
|
|
07a51b |
pr_out("Examples:\n");
|
|
|
07a51b |
pr_out(" %s statistic qp show\n", rd->filename);
|
|
|
07a51b |
pr_out(" %s statistic qp show link mlx5_2/1\n", rd->filename);
|
|
|
07a51b |
--
|
|
|
07a51b |
2.25.4
|
|
|
07a51b |
|