Home
last modified time | relevance | path

Searched refs:cycle_before (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-2.7.6/samples/userspace/syscall_perf/src/
Dtest_supervisor.c18 register unsigned long cycle_before, cycle_count; in supervisor_thread_function() local
27 cycle_before = csr_read(0xB00); in supervisor_thread_function()
32 if (cycle_count > cycle_before) { in supervisor_thread_function()
33 cycle_count -= cycle_before; in supervisor_thread_function()
35 cycle_count += 0xFFFFFFFF - cycle_before; in supervisor_thread_function()
Dtest_user.c18 register unsigned long cycle_before, cycle_count; in user_thread_function() local
27 cycle_before = csr_read(0xC00); in user_thread_function()
32 if (cycle_count > cycle_before) { in user_thread_function()
33 cycle_count -= cycle_before; in user_thread_function()
35 cycle_count += 0xFFFFFFFF - cycle_before; in user_thread_function()