Lines Matching +full:idle +full:- +full:timeout +full:- +full:ms

4  * SPDX-License-Identifier: Apache-2.0
31 /* Timer handling test timeout which ends test prematurely. */
32 static k_timeout_t timeout; variable
90 if (tmr_data->exec_cnt != 0 && exec_cnt[0] != 0) { in progress_timeout()
91 progress = (100 * exec_cnt[0]) / tmr_data->exec_cnt; in progress_timeout()
110 uint64_t rem = 1000 * (k_timer_expires_ticks(&test_timer) - sys_clock_tick_get()) / in progress_timeout()
113 printk("\r%u%% remaining:%u ms", progress, (uint32_t)rem); in progress_timeout()
141 int load = 1000 - (1000 * (idle_cycles - prev_idle_cycles) / in control_load()
142 (rt_stats_all.execution_cycles - total_cycles)); in control_load()
177 int idx = 31 - __builtin_clz(mask); in preempt_update()
190 if (context_data->preempt_cnt != 0 && preempt_cnt[priority] >= context_data->preempt_cnt) { in cont_check()
195 if (context_data->exec_cnt != 0 && exec_cnt[priority] >= context_data->exec_cnt) { in cont_check()
209 uint32_t mask = BIT_MASK(31 - __builtin_clz((uint32_t)t.ticks)); in randomize_t()
234 cont = context_data->handler(context_data->user_data, in ztress_timeout()
267 cont = context_data->handler(context_data->user_data, cnt, !cont_test, priority); in ztress_thread()
277 if (strcmp(tname, (CONFIG_MP_MAX_NUM_CPUS == 1) ? "idle" : "idle 0" STRINGIFY(i)) == 0) { \ in thread_cb()
300 if (K_TIMEOUT_EQ(timeout, K_NO_WAIT) == false) { in ztress_init()
301 k_timer_start(&test_timer, timeout, K_NO_WAIT); in ztress_init()
315 if (data->preempt_cnt != 0 || data->exec_cnt != 0) { in active_cnt_init()
329 return -EINVAL; in ztress_execute()
333 return -EINVAL; in ztress_execute()
347 priority = K_LOWEST_APPLICATION_THREAD_PRIO - cnt - 1; in ztress_execute()
356 backoff[ztress_prio] = timer_data->t; in ztress_execute()
357 init_backoff[ztress_prio] = timer_data->t; in ztress_execute()
406 timeout = t; in ztress_set_timeout()
413 printk("\t context %u:\n\t\t - executed:%u, preempted:%u\n", in ztress_report()
415 printk("\t\t - ticks initial:%u, optimized:%u\n", in ztress_report()
426 return -EINVAL; in ztress_exec_count()
435 return -EINVAL; in ztress_preempt_count()
444 return -EINVAL; in ztress_optimized_ticks()
459 while (cnt-- > 0) { in ztress_cpu_clock_to_sys_clock_check()
463 t = sys_clock_tick_get_32() - t; in ztress_cpu_clock_to_sys_clock_check()