aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/kgdbts.c
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2017-12-12 07:10:36 -0500
committerJason Wessel <jason.wessel@windriver.com>2018-01-25 09:40:17 -0500
commit0296c248b440fe0ae3f08c5c2fcded795c59353e (patch)
treee3911402a198946438e203a7d770c08f8c33fed7 /drivers/misc/kgdbts.c
parent5b7d27967dabfb17c21b0d98b29153b9e3ee71e5 (diff)
misc: kgdbts: Display progress of asynchronous tests
kgdbts includes a couple of different "thrashing" style tests that may have long runtimes (especially on simulated platforms) and which run asynchronously. This is uncomfortable for interactive use and makes setting timeouts tricky for automatic use. Fix by providing a optional means to show progress during these tests. Selecting 100 is somewhat arbitrary but it matches the step used on the synchronous tests, is large enough to keep the call to printk from invalidating the testing and is human enough to "feel about right". Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'drivers/misc/kgdbts.c')
-rw-r--r--drivers/misc/kgdbts.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/misc/kgdbts.c b/drivers/misc/kgdbts.c
index 24108bfad889..6193270e7b3d 100644
--- a/drivers/misc/kgdbts.c
+++ b/drivers/misc/kgdbts.c
@@ -400,10 +400,14 @@ static void skip_back_repeat_test(char *arg)
400 int go_back = simple_strtol(arg, NULL, 10); 400 int go_back = simple_strtol(arg, NULL, 10);
401 401
402 repeat_test--; 402 repeat_test--;
403 if (repeat_test <= 0) 403 if (repeat_test <= 0) {
404 ts.idx++; 404 ts.idx++;
405 else 405 } else {
406 if (repeat_test % 100 == 0)
407 v1printk("kgdbts:RUN ... %d remaining\n", repeat_test);
408
406 ts.idx -= go_back; 409 ts.idx -= go_back;
410 }
407 fill_get_buf(ts.tst[ts.idx].get); 411 fill_get_buf(ts.tst[ts.idx].get);
408} 412}
409 413