Home
last modified time | relevance | path

Searched refs:total_cycles (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/drivers/timer/
Dmchp_mec5_ktimer.c93 static uint32_t total_cycles; variable
173 temp = total_cycles; in sys_clock_set_timeout()
176 total_cycles = temp; in sys_clock_set_timeout()
178 partial_cycles = CYCLES_PER_TICK - (total_cycles % CYCLES_PER_TICK); in sys_clock_set_timeout()
207 elapsed = (int32_t)total_cycles - (int32_t)last_announcement; in sys_clock_elapsed()
238 total_cycles += cycles; in mec5_ktimer_isr()
239 total_cycles &= RTIMER_COUNT_MASK; in mec5_ktimer_isr()
242 ticks = total_cycles - last_announcement; in mec5_ktimer_isr()
246 last_announcement = total_cycles; in mec5_ktimer_isr()
265 uint32_t temp = total_cycles + CYCLES_PER_TICK; in mec5_ktimer_isr()
[all …]
Dmchp_xec_rtos_timer.c104 static uint32_t total_cycles; variable
224 temp = total_cycles; in sys_clock_set_timeout()
227 total_cycles = temp; in sys_clock_set_timeout()
229 partial_cycles = CYCLES_PER_TICK - (total_cycles % CYCLES_PER_TICK); in sys_clock_set_timeout()
258 elapsed = (int32_t)total_cycles - (int32_t)last_announcement; in sys_clock_elapsed()
289 total_cycles += cycles; in xec_rtos_timer_isr()
290 total_cycles &= TIMER_COUNT_MASK; in xec_rtos_timer_isr()
293 ticks = total_cycles - last_announcement; in xec_rtos_timer_isr()
297 last_announcement = total_cycles; in xec_rtos_timer_isr()
318 uint32_t temp = total_cycles + CYCLES_PER_TICK; in xec_rtos_timer_isr()
[all …]
Dapic_timer.c48 static volatile uint64_t total_cycles; variable
54 total_cycles += CYCLES_PER_TICK; in isr()
77 cycles = total_cycles; in sys_clock_cycle_get_64()
/Zephyr-latest/tests/kernel/usage/thread_runtime_stats/src/
Dtest_thread_runtime_stats.c110 zassert_true(stats1.execution_cycles == stats1.total_cycles); in ZTEST()
111 zassert_true(stats2.execution_cycles == stats2.total_cycles); in ZTEST()
112 zassert_true(stats3.execution_cycles == stats3.total_cycles); in ZTEST()
164 zassert_true(stats4.total_cycles >= stats3.total_cycles); in ZTEST()
165 zassert_true(stats5.total_cycles > stats4.total_cycles); in ZTEST()
312 zassert_true(sys_stats1.total_cycles == sys_stats2.total_cycles); in ZTEST()
348 zassert_true(sys_stats2.total_cycles < sys_stats3.total_cycles); in ZTEST()
497 zassert_true(stats1.execution_cycles == stats1.total_cycles); in ZTEST()
498 zassert_true(stats2.execution_cycles == stats2.total_cycles); in ZTEST()
/Zephyr-latest/doc/kernel/timing_functions/
Dindex.rst59 uint64_t total_cycles;
71 total_cycles = timing_cycles_get(&start_time, &end_time);
72 total_ns = timing_cycles_to_ns(total_cycles);
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/
Dmain.c113 sum_query.total_cycles += cpu_query.total_cycles; in ZTEST()
127 zassert_true(sum_query.total_cycles >= kernel_query.total_cycles); in ZTEST()
288 zassert_true(query2.total_cycles > query1.total_cycles, in ZTEST()
318 zassert_equal(query3.total_cycles, 0, in ZTEST()
319 "Expected 0, got %llu\n", query3.total_cycles); in ZTEST()
367 zassert_true(query3.total_cycles > 0); in ZTEST()
/Zephyr-latest/tests/kernel/timer/timer_behavior/src/
Djitter_drift.c156 uint64_t total_cycles = 0; in do_test_using() local
168 total_cycles += diff; in do_test_using()
187 (double)total_cycles / (double)(CONFIG_TIMER_TEST_SAMPLES - periodic_rollovers); in do_test_using()
188 double mean_us = cycles_to_us(total_cycles) / in do_test_using()
/Zephyr-latest/kernel/
Dusage.c151 stats->total_cycles = cpu->usage->total; in z_sched_cpu_usage()
159 stats->average_cycles = stats->total_cycles / in z_sched_cpu_usage()
167 stats->execution_cycles = stats->total_cycles + stats->idle_cycles; in z_sched_cpu_usage()
204 stats->total_cycles = thread->base.usage.total; in z_sched_thread_usage()
215 stats->average_cycles = stats->total_cycles / in z_sched_thread_usage()
Dthread.c982 stats->total_cycles += tmp_stats.total_cycles; in k_thread_runtime_stats_all_get()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztress.c119 static uint64_t total_cycles; in control_load() local
142 (rt_stats_all.execution_cycles - total_cycles)); in control_load()
145 total_cycles = rt_stats_all.execution_cycles; in control_load()
/Zephyr-latest/include/zephyr/kernel/
Dthread.h214 uint64_t total_cycles; /* total # of non-idle cycles */ member
/Zephyr-latest/subsys/debug/
Dthread_analyzer.c66 " ", info->usage.total_cycles); in thread_print_cb()