[PATCH] rt-tests: deadline_test: Made '-i' work and added help text for it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Steven Rostedt (Red Hat)" <rostedt@xxxxxxxxxxx>

Although the interval code was added the 'i' was missing from the getopt
list, and there was no help text for it either.

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
---
 src/sched_deadline/deadline_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sched_deadline/deadline_test.c b/src/sched_deadline/deadline_test.c
index 196dfecbbb78..2a63c5f91639 100644
--- a/src/sched_deadline/deadline_test.c
+++ b/src/sched_deadline/deadline_test.c
@@ -72,6 +72,7 @@ static void usage(char **argv)
 	       " -b - Bind on the last cpu. (shortcut for -c <lastcpu>)\n"
 	       " -r prio - Add an RT task with given prio to stress system\n"
 	       " -c cpulist - Comma/hyphen separated list of CPUs to run deadline tasks on\n"
+	       " -i interval - The shortest deadline for the tasks\n"
 	       " -p percent - The percent of bandwidth to use (1-90%%)\n"
 	       " -P percent - The percent of runtime for execution completion\n"
 	       "              (Default 100%%)\n"
@@ -1804,7 +1805,7 @@ int main (int argc, char **argv)
 		exit(-1);
 	}
 
-	while ((c = getopt(argc, argv, "+hbr:c:p:P:t:s:")) >= 0) {
+	while ((c = getopt(argc, argv, "+hbr:c:i:p:P:t:s:")) >= 0) {
 		switch (c) {
 		case 'b':
 			all_cpus = 0;
-- 
2.4.11

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux