提交 0296c248 编写于 作者: D Daniel Thompson 提交者: Jason Wessel

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: NDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
上级 5b7d2796
...@@ -400,10 +400,14 @@ static void skip_back_repeat_test(char *arg) ...@@ -400,10 +400,14 @@ static void skip_back_repeat_test(char *arg)
int go_back = simple_strtol(arg, NULL, 10); int go_back = simple_strtol(arg, NULL, 10);
repeat_test--; repeat_test--;
if (repeat_test <= 0) if (repeat_test <= 0) {
ts.idx++; ts.idx++;
else } else {
if (repeat_test % 100 == 0)
v1printk("kgdbts:RUN ... %d remaining\n", repeat_test);
ts.idx -= go_back; ts.idx -= go_back;
}
fill_get_buf(ts.tst[ts.idx].get); fill_get_buf(ts.tst[ts.idx].get);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册