From f2503b53fe4c520946fcc121c9fa11e02d071d10 Mon Sep 17 00:00:00 2001 From: "Steven Rostedt (Red Hat)" Date: Thu, 30 Jun 2016 15:53:28 +0200 Subject: rt-tests: deadline_test: Made '-i' work and added help text for it 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 Signed-off-by: John Kacur --- 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 196dfec..2a63c5f 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 )\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; -- cgit 1.2.3-korg