Skip to contentSkip to conversation

rt-tests: determine_maximum_mpps.sh: Change the -c option to -a

PATCH In review John Kacur 2 participants 2 messages Dec 16, 2020

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 rt-tests: determine_maximum_mpps.sh: Change the -c option to -a

Change -c to -a so that the options in this program match the options of the other programs in the rt-tests suite as much as possible

---
 src/queuelat/determine_maximum_mpps.8  | 8 +++++---
 src/queuelat/determine_maximum_mpps.sh | 4 ++--
 2 files changed, 7 insertions(+), 5 deletions(-)
src/queuelat/determine_maximum_mpps.8 +5 -3
index 4a28f1a4e34a..c48a651160d3 100644
@@ -16,7 +16,7 @@
 determine_maximum_mpps \- Determine the maximum mpps the machine can handle
 .SH SYNOPSIS
 .LP
-determine_maximum_mpps [-c cpulist] [-m maxlat] [-n cycles] [-f | -r] [-p priority] [-h]
+determine_maximum_mpps [-a cpulist] [-m maxlat] [-n cycles] [-f | -r] [-p priority] [-h]
 .SH DESCRIPTION
 determine_maximum_mpps will find the maximum mpps parameter which can sustain
 .PP
@@ -33,11 +33,13 @@ mpps : million-packets-per-second
 .br
 .SH OPTIONS
 .TP
-.B \-c cpulist
+.B \-a cpulist
 List of processors to run on. The default is processor 0
+.br
+Numbers are separated by commas and may include ranges. Eg. 0,3,7\-11
 .TP
 .B \-m maxlat
-Maximum latency in nanoseconds. The default is 20000. if the maximum is exceeded, that run of queuelat quits.
+Maximum latency in nanoseconds. The default is 20000. If the maximum is exceeded, that run of queuelat quits.
 .TP
 .B \-n cycles
 Extimated number of cycles it takes to process one packet. The default is 300
src/queuelat/determine_maximum_mpps.sh +2 -2
index fdede472728c..86fffd8bb617 100755
@@ -56,9 +56,9 @@ check_sched()
 }
 
 # Process command line options
-while getopts ":c:frp:m:n:h" opt; do
+while getopts ":a:frp:m:n:h" opt; do
 	case ${opt} in
-		c ) CPULIST="${OPTARG}" ;;
+		a ) CPULIST="${OPTARG}" ;;
 		m ) MAXLAT="${OPTARG}" ;;
 		n ) CYCLES_PER_PACKET="${OPTARG}" ;;
 		f ) check_sched; SCHED="-f" ;;
Signature · 1 line
2.26.2