Home
last modified time | relevance | path

Searched full:cycles (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/Zephyr-latest/tests/benchmarks/latency_measure/
DREADME.rst61 ….k_to_k - Context switch via k_yield : 315 cycles , 2625 ns :
62 …x.k_to_k - Context switch via k_yield : 315 cycles , 2625 ns :
63 …ad.kernel - Return from ISR to interrupted thread : 289 cycles , 2416 ns :
64 ….kernel - Return from ISR to another thread : 374 cycles , 3124 ns :
65 …ernel - Create thread : 382 cycles , 3191 ns :
66 …rnel - Start thread : 394 cycles , 3291 ns :
67 …kernel - Suspend thread : 289 cycles , 2416 ns :
68 …ernel - Resume thread : 339 cycles , 2833 ns :
69 …rnel - Abort thread : 339 cycles , 2833 ns :
70 … - Add data to FIFO (no ctx switch) : 214 cycles , 1791 ns :
[all …]
Dtestcase.yaml23 - "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns"
40 - "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns"
59 - "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns"
82 - "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns"
/Zephyr-latest/include/zephyr/timing/
Dtiming.h87 * @brief Get number of cycles between @p start and @p end.
90 * obtain actual number of cycles, or may roll over internally.
96 * @return Number of cycles between start and end.
113 * @brief Convert number of @p cycles into nanoseconds.
115 * @param cycles Number of cycles
120 uint64_t soc_timing_cycles_to_ns(uint64_t cycles);
123 * @brief Convert number of @p cycles into nanoseconds with averaging.
125 * @param cycles Number of cycles
126 * @param count Times of accumulated cycles to average over
131 uint64_t soc_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count);
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dsensor_clock.h17 * @brief Retrieve the current sensor clock cycles.
23 * @param[out] cycles Pointer to a 64-bit unsigned integer where the
28 int sensor_clock_get_cycles(uint64_t *cycles);
31 * @brief Convert clock cycles to nanoseconds.
33 * This function converts clock cycles into nanoseconds based on the
36 * @param cycles Clock cycles to convert.
39 uint64_t sensor_clock_cycles_to_ns(uint64_t cycles);
/Zephyr-latest/drivers/sensor/
Dsensor_clock_sys.c11 int sensor_clock_get_cycles(uint64_t *cycles) in sensor_clock_get_cycles() argument
13 if (cycles == NULL) { in sensor_clock_get_cycles()
18 *cycles = k_cycle_get_64(); in sensor_clock_get_cycles()
20 *cycles = (uint64_t)k_cycle_get_32(); in sensor_clock_get_cycles()
26 uint64_t sensor_clock_cycles_to_ns(uint64_t cycles) in sensor_clock_cycles_to_ns() argument
28 return (cycles * NSEC_PER_SEC) / sys_clock_hw_cycles_per_sec(); in sensor_clock_cycles_to_ns()
Dsensor_clock_external.c38 int sensor_clock_get_cycles(uint64_t *cycles) in sensor_clock_get_cycles() argument
47 rc = counter_get_value_64(external_sensor_clock, cycles); in sensor_clock_get_cycles()
52 *cycles = (uint64_t)result_32; in sensor_clock_get_cycles()
58 uint64_t sensor_clock_cycles_to_ns(uint64_t cycles) in sensor_clock_cycles_to_ns() argument
60 return (cycles * NSEC_PER_SEC) / freq; in sensor_clock_cycles_to_ns()
/Zephyr-latest/tests/benchmarks/latency_measure/src/
Dfifo.c61 timestamp.cycles = put_sum; in fifo_put_get_thread_entry()
64 timestamp.cycles = get_sum; in fifo_put_get_thread_entry()
86 timestamp.cycles = put_sum; in fifo_put_get_thread_entry()
89 timestamp.cycles = get_sum; in fifo_put_get_thread_entry()
95 uint64_t cycles; in fifo_ops() local
121 cycles = timestamp.cycles; in fifo_ops()
122 cycles -= timestamp_overhead_adjustment(options, options); in fifo_ops()
123 PRINT_STATS_AVG(description, (uint32_t)cycles, in fifo_ops()
132 cycles = timestamp.cycles; in fifo_ops()
133 cycles -= timestamp_overhead_adjustment(options, options); in fifo_ops()
[all …]
Dlifo.c61 timestamp.cycles = put_sum; in lifo_put_get_thread_entry()
64 timestamp.cycles = get_sum; in lifo_put_get_thread_entry()
86 timestamp.cycles = put_sum; in lifo_put_get_thread_entry()
89 timestamp.cycles = get_sum; in lifo_put_get_thread_entry()
95 uint64_t cycles; in lifo_ops() local
121 cycles = timestamp.cycles; in lifo_ops()
122 cycles -= timestamp_overhead_adjustment(options, options); in lifo_ops()
123 PRINT_STATS_AVG(description, (uint32_t)cycles, in lifo_ops()
132 cycles = timestamp.cycles; in lifo_ops()
133 cycles -= timestamp_overhead_adjustment(options, options); in lifo_ops()
[all …]
Devents.c45 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
59 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
73 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
87 timestamp.cycles = timing_cycles_get(&start, &finish); in event_ops_entry()
161 timestamp.cycles = sum[0]; in alt_thread_entry()
164 timestamp.cycles = sum[1]; in alt_thread_entry()
167 timestamp.cycles = sum[2]; in alt_thread_entry()
170 timestamp.cycles = sum[3]; in alt_thread_entry()
178 uint64_t cycles; in event_ops() local
204 cycles = timestamp.cycles; in event_ops()
[all …]
Dsema_test_signal_release.c98 timestamp.cycles = take_sum; in start_thread_entry()
102 timestamp.cycles = give_sum; in start_thread_entry()
108 uint64_t cycles; in sema_context_switch() local
137 /* Retrieve the number of cycles spent taking the semaphore */ in sema_context_switch()
139 cycles = timestamp.cycles; in sema_context_switch()
140 cycles -= timestamp_overhead_adjustment(start_options, alt_options); in sema_context_switch()
148 PRINT_STATS_AVG(description, (uint32_t)cycles, in sema_context_switch()
155 /* Retrieve the number of cycles spent taking the semaphore */ in sema_context_switch()
157 cycles = timestamp.cycles; in sema_context_switch()
158 cycles -= timestamp_overhead_adjustment(start_options, alt_options); in sema_context_switch()
[all …]
Dstack.c54 timestamp.cycles = put_sum; in stack_push_pop_thread_entry()
57 timestamp.cycles = get_sum; in stack_push_pop_thread_entry()
63 uint64_t cycles; in stack_ops() local
90 cycles = timestamp.cycles; in stack_ops()
91 cycles -= timestamp_overhead_adjustment(options, options); in stack_ops()
92 PRINT_STATS_AVG(description, (uint32_t)cycles, in stack_ops()
101 cycles = timestamp.cycles; in stack_ops()
102 cycles -= timestamp_overhead_adjustment(options, options); in stack_ops()
103 PRINT_STATS_AVG(description, (uint32_t)cycles, in stack_ops()
141 timestamp.cycles = sum[0]; in alt_thread_entry()
[all …]
Dthread.c156 timestamp.cycles = thread_create_sum; in start_thread_entry()
159 timestamp.cycles = thread_start_sum; in start_thread_entry()
162 timestamp.cycles = thread_suspend_sum; in start_thread_entry()
165 timestamp.cycles = thread_resume_sum; in start_thread_entry()
168 timestamp.cycles = thread_abort_sum; in start_thread_entry()
175 uint64_t cycles; in thread_ops() local
243 cycles = timestamp.cycles; in thread_ops()
244 cycles -= timestamp_overhead_adjustment(start_options, alt_options); in thread_ops()
258 PRINT_STATS_AVG(description, (uint32_t)cycles, in thread_ops()
262 cycles = timestamp.cycles; in thread_ops()
[all …]
Dmutex_lock_unlock.c58 timestamp.cycles = lock_cycles; in start_lock_unlock()
61 timestamp.cycles = unlock_cycles; in start_lock_unlock()
79 uint64_t cycles; in mutex_lock_unlock() local
94 cycles = timestamp.cycles; in mutex_lock_unlock()
102 PRINT_STATS_AVG(description, (uint32_t)cycles, num_iterations, in mutex_lock_unlock()
105 cycles = timestamp.cycles; in mutex_lock_unlock()
112 PRINT_STATS_AVG(description, (uint32_t)cycles, num_iterations, in mutex_lock_unlock()
Dcondvar.c51 timestamp.cycles = sum[0]; in start_thread_entry()
54 timestamp.cycles = sum[1]; in start_thread_entry()
77 uint64_t cycles; in condvar_blocking_ops() local
113 cycles = timestamp.cycles; in condvar_blocking_ops()
114 PRINT_STATS_AVG(description, (uint32_t)cycles, in condvar_blocking_ops()
124 cycles = timestamp.cycles; in condvar_blocking_ops()
125 PRINT_STATS_AVG(description, (uint32_t)cycles, in condvar_blocking_ops()
/Zephyr-latest/samples/userspace/syscall_perf/
DREADME.rst21 Both threads are showing the number of core clock cycles and the number of
30 User thread: 18012 cycles 748 instructions
31 Supervisor thread: 7 cycles 4 instructions
32 User thread: 20136 cycles 748 instructions
33 Supervisor thread: 7 cycles 4 instructions
34 User thread: 18014 cycles 748 instructions
35 Supervisor thread: 7 cycles 4 instructions
/Zephyr-latest/samples/sensor/clock/src/
Dmain.c15 uint64_t cycles = 0; in main() local
22 err = sensor_clock_get_cycles(&cycles); in main()
24 printf("Failed to get sensor clock cycles, error: %d\n", err); in main()
28 printf("Cycles: %llu\n", cycles); in main()
30 delta_ns = sensor_clock_cycles_to_ns(cycles); in main()
/Zephyr-latest/drivers/timer/
Dxlnx_psttc_timer.c62 static void update_match(uint32_t cycles, uint32_t match) in update_match() argument
64 uint32_t delta = match - cycles; in update_match()
77 uint32_t cycles; in ttc_isr() local
86 cycles = read_count(); in ttc_isr()
90 ticks = (cycles - last_cycles) / CYCLES_PER_TICK; in ttc_isr()
92 /* Update last cycles count */ in ttc_isr()
93 last_cycles = cycles; in ttc_isr()
96 update_match(cycles, cycles + CYCLES_PER_TICK); in ttc_isr()
109 uint32_t cycles; in sys_clock_set_timeout() local
113 cycles = read_count(); in sys_clock_set_timeout()
[all …]
/Zephyr-latest/samples/sensor/clock/
DREADME.rst35 The application will print the current sensor clock cycles and
40 Cycles: 143783087
42 Cycles: 159776386
44 Cycles: 175772543
46 Cycles: 191771203
48 Cycles: 207758870
50 Cycles: 223752074
/Zephyr-latest/include/zephyr/sys/
Dtime_units.h285 * "cyc" => "hardware cycles",
351 /** @brief Convert seconds to hardware cycles. 32 bits. Truncates.
353 * Converts time values in seconds to hardware cycles.
361 * @return The converted time value in hardware cycles. uint32_t
367 /** @brief Convert seconds to hardware cycles. 64 bits. Truncates.
369 * Converts time values in seconds to hardware cycles.
377 * @return The converted time value in hardware cycles. uint64_t
383 /** @brief Convert seconds to hardware cycles. 32 bits. Round nearest.
385 * Converts time values in seconds to hardware cycles.
393 * @return The converted time value in hardware cycles. uint32_t
[all …]
/Zephyr-latest/samples/boards/microchip/mec15xxevb_assy6853/power_management/src/
Dpower_mgmt.h11 /** @brief Alternates between light and deep sleep cycles.
21 * @param cycles to repeat the cycle described above.
24 int test_pwr_mgmt_singlethread(bool use_logging, uint8_t cycles);
26 /** @brief Alternates between light and deep sleep cycles.
33 * @param cycles to repeat the cycle described above.
36 int test_pwr_mgmt_multithread(bool use_logging, uint8_t cycles);
/Zephyr-latest/tests/subsys/pm/power_mgmt_soc/src/
Dpower_mgmt.h11 /** @brief Alternates between light and deep sleep cycles.
19 * @param cycles to repeat the cycle described above.
22 int test_pwr_mgmt_singlethread(uint8_t cycles);
24 /** @brief Alternates between light and deep sleep cycles.
29 * @param cycles to repeat the cycle described above.
32 int test_pwr_mgmt_multithread(uint8_t cycles);
/Zephyr-latest/subsys/shell/modules/kernel_service/
Dcycles.c17 shell_print(sh, "cycles: %u hw cycles", k_cycle_get_32()); in cmd_kernel_cycles()
21 KERNEL_CMD_ADD(cycles, NULL, "Kernel cycles.", cmd_kernel_cycles);
/Zephyr-latest/samples/subsys/shell/shell_module/
Dtest_shell.yml1 - command: "kernel cycles"
2 expected: "cycles: .* hw cycles"
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/
DREADME.rst33 - :file:`math_ops.c`: executes the math functions, computes the cycles it took to execute and check…
74 [Library Test] Vector Sum takes 6886 cycles
79 [Library Test] Vector power sum takes 6659 cycles
84 [Library Test] Vector power sum takes 3681 cycles
89 [Library Test] Fast Fourier Transform on Real Data takes 67956 cycles
94 [Library Test] Bi-quad Real Block IIR takes 506702 cycles
99 [Library Test] Least Mean Square (LMS) Filter for Real Data test takes 184792 cycles
112 [Library Test] Vector Sum takes 3829 cycles
117 [Library Test] Vector power sum takes 2432 cycles
122 [Library Test] Vector power sum takes 2594 cycles
[all …]
/Zephyr-latest/arch/arm/core/cortex_m/
Dtiming.c25 * in DWT cycles per second (Hz).
42 * reflected in the system timer HW cycles/sec. in z_arm_dwt_freq_get()
66 * cycles are in 32-bit, and delta must be in z_arm_dwt_freq_get()
112 uint64_t arch_timing_cycles_to_ns(uint64_t cycles) in arch_timing_cycles_to_ns() argument
114 return (cycles) * (NSEC_PER_USEC) / arch_timing_freq_get_mhz(); in arch_timing_cycles_to_ns()
117 uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in arch_timing_cycles_to_ns_avg() argument
119 return arch_timing_cycles_to_ns(cycles) / count; in arch_timing_cycles_to_ns_avg()

12345678910>>...18