Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/drivers/timer/
Dapic_timer.c79 static uint64_t total_cycles; variable
117 total_cycles += (cached_icr - ccr); in sys_clock_set_timeout()
118 partial_cycles = CYCLES_PER_TICK - (total_cycles % CYCLES_PER_TICK); in sys_clock_set_timeout()
132 ticks = total_cycles - last_announcement; in sys_clock_elapsed()
165 total_cycles += cycles; in isr()
166 ticks = (total_cycles - last_announcement) / CYCLES_PER_TICK; in isr()
167 last_announcement = total_cycles; in isr()
179 total_cycles += CYCLES_PER_TICK; in isr()
213 ret = total_cycles + (cached_icr - ccr); in sys_clock_cycle_get_32()
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 …]
/Zephyr-Core-3.4.0/tests/kernel/usage/thread_runtime_stats/src/
Dtest_thread_runtime_stats.c108 zassert_true(stats1.execution_cycles == stats1.total_cycles); in ZTEST()
109 zassert_true(stats2.execution_cycles == stats2.total_cycles); in ZTEST()
110 zassert_true(stats3.execution_cycles == stats3.total_cycles); in ZTEST()
162 zassert_true(stats4.total_cycles >= stats3.total_cycles); in ZTEST()
163 zassert_true(stats5.total_cycles > stats4.total_cycles); in ZTEST()
310 zassert_true(sys_stats1.total_cycles == sys_stats2.total_cycles); in ZTEST()
346 zassert_true(sys_stats2.total_cycles < sys_stats3.total_cycles); in ZTEST()
495 zassert_true(stats1.execution_cycles == stats1.total_cycles); in ZTEST()
496 zassert_true(stats2.execution_cycles == stats2.total_cycles); in ZTEST()
/Zephyr-Core-3.4.0/tests/kernel/timer/timer_behavior/src/
Djitter_drift.c130 uint64_t total_cycles = 0; in do_test_using() local
142 total_cycles += diff; in do_test_using()
152 (double)total_cycles / (double)(CONFIG_TIMER_TEST_SAMPLES - periodic_rollovers); in do_test_using()
153 double mean_us = cycles_to_us(total_cycles) / in do_test_using()
/Zephyr-Core-3.4.0/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-Core-3.4.0/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.c1114 stats->total_cycles += tmp_stats.total_cycles; in k_thread_runtime_stats_all_get()
/Zephyr-Core-3.4.0/include/zephyr/drivers/
Dgna.h84 uint32_t total_cycles; member
/Zephyr-Core-3.4.0/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-Core-3.4.0/include/zephyr/kernel/
Dthread.h195 uint64_t total_cycles; /* total # of non-idle cycles */ member
/Zephyr-Core-3.4.0/subsys/debug/
Dthread_analyzer.c54 info->usage.total_cycles); in thread_print_cb()
/Zephyr-Core-3.4.0/drivers/neural_net/
Dintel_gna.c93 pending_resp.response.stats.total_cycles = regs->gnaptc;
96 pending_resp.response.stats.total_cycles = 0U;