/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/ |
D | README.rst | 1 .. zephyr:code-sample:: number_crunching 17 .. code-block:: cmake 32 - :file:`main.c`: calls the generic math functions; 33 - :file:`math_ops.c`: executes the math functions, computes the cycles it took to execute and check… 34 - :file:`cmsis_dsp_wrapper.c`: calls the exact math functions from CMSIS-DSP if :kconfig:option:`CO… 35 - :file:`nature_dsp_wrapper`: if ``LIB_LOCATION`` is defined and points to an out of tree location … 42 CMSIS-DSP is an optional module and needs to be added explicitly to your Zephyr workspace: 44 .. code-block:: shell 46 west config manifest.project-filter -- +cmsis-dsp 47 west update cmsis-dsp [all …]
|
/Zephyr-latest/dts/bindings/fs/ |
D | zephyr,fstab,littlefs.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Description of pre-defined file systems. 9 include: "zephyr,fstab-common.yaml" 12 # num-files and num-dirs are not filesystem-specific. 14 read-size: 25 prog-size: 36 cache-size: 40 The size of block caches, in bytes. 42 Each cache buffers a portion of a block in RAM. The littlefs 47 factor of the block size. [all …]
|
/Zephyr-latest/samples/userspace/syscall_perf/ |
D | README.rst | 1 .. zephyr:code-sample:: syscall_perf 21 Both threads are showing the number of core clock cycles and the number of 28 .. code-block:: console 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/tests/benchmarks/latency_measure/src/ |
D | condvar.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * 1. Block waiting for a condition variable 34 /* 1. Get the first timestamp and block on condvar */ in start_thread_entry() 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 88 priority - 2, start_options, K_FOREVER); in condvar_blocking_ops() 95 priority - 1, alt_options, K_FOREVER); in condvar_blocking_ops() 111 "%-40s - Wait for a condvar (context switch)", tag); in condvar_blocking_ops() 113 cycles = timestamp.cycles; in condvar_blocking_ops() [all …]
|
D | fifo.c | 4 * SPDX-License-Identifier: Apache-2.0 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 108 priority - 1, options, K_FOREVER); in fifo_ops() 119 "%-40s - Add data to FIFO (no ctx switch)", tag); in fifo_ops() 121 cycles = timestamp.cycles; in fifo_ops() 122 cycles -= timestamp_overhead_adjustment(options, options); in fifo_ops() [all …]
|
D | lifo.c | 4 * SPDX-License-Identifier: Apache-2.0 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 108 priority - 1, options, K_FOREVER); in lifo_ops() 119 "%-40s - Add data to LIFO (no ctx switch)", tag); in lifo_ops() 121 cycles = timestamp.cycles; in lifo_ops() 122 cycles -= timestamp_overhead_adjustment(options, options); in lifo_ops() [all …]
|
D | stack.c | 4 * SPDX-License-Identifier: Apache-2.0 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 78 priority - 1, options, K_FOREVER); in stack_ops() 88 "%-40s - Add data to k_stack (no ctx switch)", tag); in stack_ops() 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() 100 "%-40s - Get data from k_stack (no ctx switch)", tag); in stack_ops() [all …]
|
D | sema_test_signal_release.c | 2 * Copyright (c) 2012-2015 Wind River Systems, Inc. 5 * SPDX-License-Identifier: Apache-2.0 68 * 1. Block on taking the semaphore and force a context switch in start_thread_entry() 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 121 priority - 2, start_options, K_FOREVER); in sema_context_switch() 127 priority - 1, alt_options, K_FOREVER); in sema_context_switch() 137 /* Retrieve the number of cycles spent taking the semaphore */ in sema_context_switch() 139 cycles = timestamp.cycles; in sema_context_switch() [all …]
|
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/src/ |
D | math_ops.c | 4 * SPDX-License-Identifier: Apache-2.0 21 if (abs(in_a[i] - in_b[i]) > threshold) { in test_near_equal_q15() 44 printk("[Library Test] Vector Sum takes %d cycles\r\n", stop - start); in test_vec_sum_int16_op() 67 printk("[Library Test] Vector power sum takes %d cycles\r\n", stop - start); in test_power_int16_op() 82 printk("[Library Test] Vector power sum takes %d cycles\r\n", stop - start); in test_power_int32_op() 102 printk("[Library Test] Fast Fourier Transform on Real Data takes %d cycles\r\n", in test_fft_op() 103 stop - start); in test_fft_op() 109 printk("[Library Test] == Bi-quad Real Block IIR test ==\r\n"); in test_iir_op() 116 printk("[Library Test] Bi-quad Real Block IIR takes %d cycles\r\n", stop - start); in test_iir_op() 117 printk("[Library Test] == Bi-quad Real Block IIR end ==\r\n\r\n"); in test_iir_op() [all …]
|
/Zephyr-latest/subsys/fs/ |
D | Kconfig.littlefs | 4 # SPDX-License-Identifier: Apache-2.0 31 int "Minimum size of a block read" 37 int "Minimum size of a block program" 43 int "Size of block caches in bytes" 46 Each cache buffers a portion of a block in RAM. The littlefs 51 device, and a factor of the block size. 63 int "Number of erase cycles before moving data to another block" 66 For dynamic wear leveling, the number of erase cycles before data 67 is moved to another block. Set to a non-positive value to 76 littlefs requires a per-file buffer to cache data. [all …]
|
/Zephyr-latest/samples/modules/cmsis_dsp/moving_average/ |
D | README.rst | 1 .. zephyr:code-sample:: cmsis-dsp-moving-average 2 :name: CMSIS-DSP moving average 4 Use the CMSIS-DSP library to calculate the moving average of a signal. 9 This sample demonstrates how to use the CMSIS-DSP library to calculate the moving average of a 12 It can be run on any board supported in Zephyr, but note that CMSIS-DSP is specifically optimized 13 for ARM Cortex-A and Cortex-M processors. 21 CMSIS-DSP function, and displayed on the console. 24 In order to allow an easy comparison of the efficiency of the CMSIS-DSP library when used on ARM 25 processors vs. other architectures, the sample outputs the time and number of cycles it took to 31 CMSIS-DSP is an optional module and needs to be added explicitly to your Zephyr workspace: [all …]
|
/Zephyr-latest/samples/subsys/fs/littlefs/boards/ |
D | cyw920829m2evk_02.overlay | 6 mount-point = "/lfs1"; 8 read-size = <16>; 9 prog-size = <16>; 10 cache-size = <64>; 11 lookahead-size = <32>; 12 block-cycles = <512>;
|
D | stm32f746g_disco.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <32>; 13 prog-size = <32>; 14 cache-size = <256>; 15 lookahead-size = <64>; 16 block-cycles = <512>; 18 mount-point = "/lfs1";
|
D | stm32h750b_dk.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <32>; 13 prog-size = <32>; 14 cache-size = <256>; 15 lookahead-size = <64>; 16 block-cycles = <512>; 18 mount-point = "/lfs1";
|
D | stm32h747i_disco_stm32h747xx_m7.overlay | 5 * SPDX-License-Identifier: Apache-2.0 13 read-size = <32>; 14 prog-size = <32>; 15 cache-size = <256>; 16 lookahead-size = <64>; 17 block-cycles = <512>; 19 mount-point = "/lfs1";
|
D | b_u585i_iot02a.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <256>; 13 prog-size = <256>; 14 cache-size = <4096>; 15 lookahead-size = <256>; 16 block-cycles = <512>; 18 mount-point = "/lfs1"; 26 /delete-node/ partition;
|
D | stm32l562e_dk.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 read-size = <256>; 13 prog-size = <256>; 14 cache-size = <4096>; 15 lookahead-size = <256>; 16 block-cycles = <512>; 18 mount-point = "/lfs1"; 26 /delete-node/ partition;
|
D | bmd_345_eval.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &storage_partition; 14 mount-point = "/lfs1"; 17 read-size = <16>; 18 prog-size = <16>; 19 cache-size = <64>; 20 lookahead-size = <32>; 21 block-cycles = <512>; 28 compatible = "fixed-partitions"; 29 #address-cells = <1>; [all …]
|
D | nrf52840dk_nrf52840_qspi.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &storage_partition; 14 mount-point = "/lfs1"; 17 read-size = <16>; 18 prog-size = <16>; 19 cache-size = <64>; 20 lookahead-size = <32>; 21 block-cycles = <512>; 28 compatible = "fixed-partitions"; 29 #address-cells = <1>; [all …]
|
D | rak5010_nrf52840.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &storage_partition; 14 mount-point = "/lfs1"; 17 read-size = <16>; 18 prog-size = <16>; 19 cache-size = <64>; 20 lookahead-size = <32>; 21 block-cycles = <512>; 28 compatible = "fixed-partitions"; 29 #address-cells = <1>; [all …]
|
/Zephyr-latest/tests/subsys/logging/log_backend_fs/boards/ |
D | cyw920829m2evk_02.overlay | 6 mount-point = "/lfs1"; 8 read-size = <16>; 9 prog-size = <16>; 10 cache-size = <64>; 11 lookahead-size = <32>; 12 block-cycles = <512>;
|
D | mr_canhubk3.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &storage_partition; 14 mount-point = "/lfs1"; 16 read-size = <16>; 17 prog-size = <16>; 18 cache-size = <64>; 19 lookahead-size = <32>; 20 block-cycles = <512>; 27 compatible = "fixed-partitions"; 28 #address-cells = <1>; [all …]
|
/Zephyr-latest/doc/kernel/timing_functions/ |
D | index.rst | 35 5. Call :c:func:`timing_cycles_get` to get the number of timer cycles 38 6. Call :c:func:`timing_cycles_to_ns` with total number of cycles 39 to convert number of cycles to nanoseconds. 48 ------- 52 .. code-block:: c
|
/Zephyr-latest/tests/subsys/logging/log_backend_fs/ |
D | automount.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /delete-node/ &lfs1; 13 mount-point = "/lfs1"; 16 read-size = <16>; 17 prog-size = <16>; 18 cache-size = <64>; 19 lookahead-size = <32>; 20 block-cycles = <512>;
|
/Zephyr-latest/tests/drivers/disk/disk_performance/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 90 uint64_t cycles, total_ns; in read_helper() local 107 cycles = timing_cycles_get(&start_time, &end_time); in read_helper() 108 total_ns += timing_cycles_to_ns(cycles); in read_helper() 143 uint64_t cycles, total_ns; in write_helper() local 149 /* Read block we will overwrite, to back it up. */ in write_helper() 166 cycles = timing_cycles_get(&start_time, &end_time); in write_helper() 167 total_ns += timing_cycles_to_ns(cycles); in write_helper() 172 /* Replace block with backup */ in write_helper() 204 uint64_t cycles, total_ns; in ZTEST() local [all …]
|