Skip to content

Commit 0296c24

Browse files
Daniel Thompsonjwessel
authored andcommitted
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>
1 parent 5b7d279 commit 0296c24

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎drivers/misc/kgdbts.c‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,14 @@ static void skip_back_repeat_test(char *arg)
400400
int go_back = simple_strtol(arg, NULL, 10);
401401

402402
repeat_test--;
403-
if (repeat_test <= 0)
403+
if (repeat_test <= 0) {
404404
ts.idx++;
405-
else
405+
} else {
406+
if (repeat_test % 100 == 0)
407+
v1printk("kgdbts:RUN ... %d remaining\n", repeat_test);
408+
406409
ts.idx -= go_back;
410+
}
407411
fill_get_buf(ts.tst[ts.idx].get);
408412
}
409413

0 commit comments

Comments
 (0)