According to documentation the default value of 'loop' is -1, but the threads without a loop field runs only once and stops.
Fix it.
Fixes: 3bda96e6e664 ("add phase feature") Signed-off-by: Viresh Kumar viresh.kumar@linaro.org --- V2: Fixed at a different place and updated Fixes tag as well.
src/rt-app_parse_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rt-app_parse_config.c b/src/rt-app_parse_config.c index e5ef87f6ee3e..f06b32162b20 100644 --- a/src/rt-app_parse_config.c +++ b/src/rt-app_parse_config.c @@ -734,7 +734,7 @@ parse_thread_data(char *name, struct json_object *obj, int index, data->phases = malloc(sizeof(phase_data_t) * data->nphases); parse_thread_phase_data(obj, &data->phases[0], opts, (long)data); /* Get loop number */ - data->loop = 1; + data->loop = -1; }
}