/Zephyr-latest/tests/benchmarks/latency_measure/ |
D | README.rst | 61 ….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 …]
|
D | testcase.yaml | 22 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns" 38 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns" 56 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns" 78 regex: "(?P<metric>.*) - (?P<description>.*):(?P<cycles>.*) cycles ,(?P<nanoseconds>.*) ns"
|
/Zephyr-latest/include/zephyr/timing/ |
D | timing.h | 87 * @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/tests/benchmarks/latency_measure/src/ |
D | fifo.c | 61 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 …]
|
D | lifo.c | 61 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 …]
|
D | events.c | 45 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 …]
|
D | sema_test_signal_release.c | 98 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 …]
|
D | stack.c | 54 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 …]
|
D | thread.c | 156 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 …]
|
D | mutex_lock_unlock.c | 58 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()
|
D | condvar.c | 51 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/ |
D | README.rst | 21 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/drivers/timer/ |
D | xlnx_psttc_timer.c | 62 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/include/zephyr/sys/ |
D | time_units.h | 279 * "cyc" => "hardware cycles", 345 /** @brief Convert seconds to hardware cycles. 32 bits. Truncates. 347 * Converts time values in seconds to hardware cycles. 355 * @return The converted time value in hardware cycles. uint32_t 361 /** @brief Convert seconds to hardware cycles. 64 bits. Truncates. 363 * Converts time values in seconds to hardware cycles. 371 * @return The converted time value in hardware cycles. uint64_t 377 /** @brief Convert seconds to hardware cycles. 32 bits. Round nearest. 379 * Converts time values in seconds to hardware cycles. 387 * @return The converted time value in hardware cycles. uint32_t [all …]
|
/Zephyr-latest/samples/boards/microchip/mec15xxevb_assy6853/power_management/src/ |
D | power_mgmt.h | 11 /** @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/ |
D | power_mgmt.h | 11 /** @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/ |
D | cycles.c | 17 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/arch/common/ |
D | timing.c | 40 uint64_t arch_timing_cycles_to_ns(uint64_t cycles) in arch_timing_cycles_to_ns() argument 42 return k_cyc_to_ns_floor64(cycles); in arch_timing_cycles_to_ns() 45 uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in arch_timing_cycles_to_ns_avg() argument 47 return arch_timing_cycles_to_ns(cycles) / count; in arch_timing_cycles_to_ns_avg()
|
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/ |
D | README.rst | 33 - :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/ |
D | timing.c | 25 * 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() 114 uint64_t arch_timing_cycles_to_ns(uint64_t cycles) in arch_timing_cycles_to_ns() argument 116 return (cycles) * (NSEC_PER_USEC) / arch_timing_freq_get_mhz(); in arch_timing_cycles_to_ns() 119 uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in arch_timing_cycles_to_ns_avg() argument 121 return arch_timing_cycles_to_ns(cycles) / count; in arch_timing_cycles_to_ns_avg()
|
/Zephyr-latest/arch/xtensa/core/ |
D | timing.c | 44 uint64_t arch_timing_cycles_to_ns(uint64_t cycles) in arch_timing_cycles_to_ns() argument 46 return cycles * 1000000000ULL / CONFIG_XTENSA_CCOUNT_HZ; in arch_timing_cycles_to_ns() 49 uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in arch_timing_cycles_to_ns_avg() argument 52 return arch_timing_cycles_to_ns(cycles) / (uint64_t) count; in arch_timing_cycles_to_ns_avg()
|
/Zephyr-latest/dts/bindings/memory-controllers/ |
D | st,stm32-fmc-sdram.yaml | 112 expressed in number of memory clock cycles. It must be set at least to 113 41 SDRAM clock cycles. 133 - CAS: SDRAM CAS latency in number of memory clock cycles. 138 - RPIPE: Delay, in fmc_ker_ck clock cycles, for reading data after CAS 149 Refresh command in number of memory clock cycles. 151 Activate command in number of memory clock cycles. If two SDRAM 154 - TRAS: Minimum Self-refresh period in number of memory clock cycles. 157 expressed in number of memory clock cycles. If two SDRAM devices are 161 clock cycles 163 of memory clock cycles. If two SDRAM devices are used, the TRP must be [all …]
|
/Zephyr-latest/kernel/ |
D | usage.c | 36 static void sched_cpu_update_usage(struct _cpu *cpu, uint32_t cycles) in sched_cpu_update_usage() argument 43 cpu->usage->total += cycles; in sched_cpu_update_usage() 46 cpu->usage->current += cycles; in sched_cpu_update_usage() 58 #define sched_cpu_update_usage(cpu, cycles) do { } while (0) argument 61 static void sched_thread_update_usage(struct k_thread *thread, uint32_t cycles) in sched_thread_update_usage() argument 63 thread->base.usage.total += cycles; in sched_thread_update_usage() 66 thread->base.usage.current += cycles; in sched_thread_update_usage() 108 uint32_t cycles = usage_now() - u0; in z_sched_usage_stop() local 111 sched_thread_update_usage(cpu->current, cycles); in z_sched_usage_stop() 114 sched_cpu_update_usage(cpu, cycles); in z_sched_usage_stop() [all …]
|
/Zephyr-latest/arch/x86/ |
D | timing.c | 32 * cycles are in 32-bit, and delta must be 78 uint64_t arch_timing_cycles_to_ns(uint64_t cycles) in arch_timing_cycles_to_ns() argument 80 return ((cycles) * NSEC_PER_SEC / tsc_freq); in arch_timing_cycles_to_ns() 83 uint64_t arch_timing_cycles_to_ns_avg(uint64_t cycles, uint32_t count) in arch_timing_cycles_to_ns_avg() argument 85 return arch_timing_cycles_to_ns(cycles) / count; in arch_timing_cycles_to_ns_avg()
|
/Zephyr-latest/tests/benchmarks/sched_queues/src/ |
D | main.c | 155 uint64_t *cycles, const char *tag, const char *str) in compute_and_report_stats() argument 157 uint64_t minimum = cycles[0]; in compute_and_report_stats() 158 uint64_t maximum = cycles[0]; in compute_and_report_stats() 159 uint64_t total = cycles[0]; in compute_and_report_stats() 167 if (cycles[i] > maximum) { in compute_and_report_stats() 168 maximum = cycles[i]; in compute_and_report_stats() 171 if (cycles[i] < minimum) { in compute_and_report_stats() 172 minimum = cycles[i]; in compute_and_report_stats() 175 total += cycles[i]; in compute_and_report_stats() 183 tmp = cycles[i] / num_iterations; in compute_and_report_stats() [all …]
|