/Zephyr-latest/subsys/shell/modules/kernel_service/thread/ |
D | stacks.c | 5 * SPDX-License-Identifier: Apache-2.0 26 size_t unused; in shell_stack_dump() local 27 size_t size = thread->stack_info.size; in shell_stack_dump() 31 ret = k_thread_stack_space_get(thread, &unused); in shell_stack_dump() 34 "Unable to determine unused stack size (%d)\n", in shell_stack_dump() 42 pcnt = ((size - unused) * 100U) / size; in shell_stack_dump() 45 "%p %-" STRINGIFY(THREAD_MAX_NAM_LEN) "s " in shell_stack_dump() 47 thread, tname ? tname : "NA", size, unused, size - unused, size, pcnt); in shell_stack_dump() 59 memset(pad, ' ', MAX((THREAD_MAX_NAM_LEN - strlen("IRQ 00")), 1)); in cmd_kernel_thread_stacks() 68 * kernel support, including dumping arch-specific exception-related in cmd_kernel_thread_stacks() [all …]
|
D | list.c | 5 * SPDX-License-Identifier: Apache-2.0 37 * so it won't increase RAM/ROM usage too much on 32-bit in rt_stats_dump() 67 size_t unused; in shell_tdata_dump() local 68 size_t size = thread->stack_info.size; in shell_tdata_dump() 75 shell_print(sh, "%s%p %-10s", in shell_tdata_dump() 81 thread->base.user_options, in shell_tdata_dump() 82 thread->base.prio, in shell_tdata_dump() 83 (int64_t)thread->base.timeout.dticks); in shell_tdata_dump() 86 thread->entry.pEntry); in shell_tdata_dump() 89 shell_print(sh, "\tcpu_mask: 0x%x", thread->base.cpu_mask); in shell_tdata_dump() [all …]
|
/Zephyr-latest/doc/services/debugging/ |
D | thread-analyzer.rst | 16 .. zephyr-app-commands:: 17 :zephyr-app: samples/synchronization/ 20 :gen-args: -DCONFIG_QEMU_ICOUNT=n -DCONFIG_THREAD_ANALYZER=y \ 21 -DCONFIG_THREAD_ANALYZER_USE_PRINTK=y -DCONFIG_THREAD_ANALYZER_AUTO=y \ 22 -DCONFIG_THREAD_ANALYZER_AUTO_INTERVAL=5 31 thread_b : STACK: unused 740 usage 284 / 1024 (27 %); CPU: 0 % 32 thread_analyzer : STACK: unused 8 usage 504 / 512 (98 %); CPU: 0 % 33 thread_a : STACK: unused 648 usage 376 / 1024 (36 %); CPU: 98 % 34 idle : STACK: unused 204 usage 116 / 320 (36 %); CPU: 0 % 44 thread_b : STACK: unused 648 usage 376 / 1024 (36 %); CPU: 7 % [all …]
|
/Zephyr-latest/tests/subsys/debug/thread_analyzer/ |
D | testcase.yaml | 3 - qemu_x86 4 - qemu_x86_64 8 - mps2/an385 9 - qemu_cortex_a53 10 - qemu_x86 11 - qemu_x86_64 12 - qemu_riscv32 13 - qemu_riscv64 14 - qemu_xtensa/dc233c/mmu 16 - CONFIG_QEMU_ICOUNT=n [all …]
|
/Zephyr-latest/include/zephyr/debug/ |
D | stack.h | 9 * SPDX-License-Identifier: Apache-2.0 22 size_t unused, size = thread->stack_info.size; in log_stack_usage() local 28 if (k_thread_stack_space_get(thread, &unused) == 0) { in log_stack_usage() 29 unsigned int pcnt = ((size - unused) * 100U) / size; in log_stack_usage() 38 thread, tname, unused, size - unused, size, in log_stack_usage()
|
/Zephyr-latest/subsys/debug/ |
D | thread_analyzer.c | 2 * Copyright (c) 2019 - 2020 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 41 size_t pcnt = (info->stack_used * 100U) / info->stack_size; in thread_print_cb() 45 " %-20s: STACK: unused %zu usage %zu / %zu (%zu %%); CPU: %u %%"), in thread_print_cb() 46 THREAD_ANALYZER_VSTR(info->name), in thread_print_cb() 47 info->stack_size - info->stack_used, info->stack_used, in thread_print_cb() 48 info->stack_size, pcnt, in thread_print_cb() 49 info->utilization); in thread_print_cb() 52 if (info->priv_stack_size > 0) { in thread_print_cb() 53 pcnt = (info->priv_stack_used * 100U) / info->priv_stack_size; in thread_print_cb() [all …]
|
/Zephyr-latest/drivers/mm/ |
D | Kconfig | 3 # SPDX-License-Identifier: Apache-2.0 21 bool "Power off unused RAM" 23 Allows TLB driver to remap unused RAM - unused 26 Note that unused memory will be powered off by
|
/Zephyr-latest/modules/canopennode/ |
D | canopen_sync.c | 4 * SPDX-License-Identifier: Apache-2.0 12 * The CANopen real-time sync thread processes SYNC RPDOs and TPDOs 15 * @param p1 Unused 16 * @param p2 Unused 17 * @param p3 Unused 33 if (CO && CO->CANmodule[0] && CO->CANmodule[0]->CANnormal) { in canopen_sync_thread() 43 delta = stop - start; in canopen_sync_thread()
|
/Zephyr-latest/scripts/utils/ |
D | migrate_sys_init.py | 11 -p path/to/zephyr-based-project 14 SPDX-License-Identifier: Apache-2.0 32 m = re.match(r"^SYS_INIT\(([A-Za-z0-9_]+),.*", line) 37 m = re.match(r"^SYS_INIT_NAMED\([A-Za-z0-9_]+,\s?([A-Za-z0-9_]+).*", line) 48 unused = False 64 unused = True 67 elif unused: 71 unused = False 85 "-p", "--project", type=Path, required=True, help="Zephyr-based project path" 87 parser.add_argument("--dry-run", action="store_true", help="Dry run")
|
/Zephyr-latest/tests/posix/fs/src/ |
D | test_fs_stat.c | 4 * SPDX-License-Identifier: Apache-2.0 34 size -= FILL_SIZE; in create_file() 42 static void before_fn(void *unused) in before_fn() argument 44 ARG_UNUSED(unused); in before_fn() 53 static void after_fn(void *unused) in after_fn() argument 55 ARG_UNUSED(unused); in after_fn() 67 * @details Tests file in root, file in directroy, non-existing file and empty file.
|
D | test_fat_mount.c | 4 * SPDX-License-Identifier: Apache-2.0 35 void test_unmount(void *unused) in test_unmount() argument 39 ARG_UNUSED(unused); in test_unmount()
|
/Zephyr-latest/tests/benchmarks/footprints/src/ |
D | workq.c | 4 * SPDX-License-Identifier: Apache-2.0 23 void user_workq_func(struct k_work_user *unused) in user_workq_func() argument 25 ARG_UNUSED(unused); in user_workq_func() 32 void workq_func(struct k_work *unused) in workq_func() argument 34 ARG_UNUSED(unused); in workq_func()
|
D | libc.c | 4 * SPDX-License-Identifier: Apache-2.0 27 /* avoid unused return error */ in run_libc() 30 /* avoid unused return error */ in run_libc()
|
/Zephyr-latest/tests/kernel/threads/thread_stack/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 36 *start_addr = (char *)k_current_get()->stack_info.start; in z_impl_stack_info_get() 37 *size = k_current_get()->stack_info.size; in z_impl_stack_info_get() 98 size_t stack_size, unused, carveout, reserved, alignment, adjusted; in stack_buffer_scenarios() local 123 printk(" - Thread reports buffer %p size %zu\n", stack_start, in stack_buffer_scenarios() 149 zassert_true(STEST_STACKSIZE <= (obj_size - reserved), in stack_buffer_scenarios() 166 printk(" - check read/write to stack buffer\n"); in stack_buffer_scenarios() 201 zassert_true(check_perms(stack_start - 1, 1, 0), in stack_buffer_scenarios() 203 obj_start - 1); in stack_buffer_scenarios() 210 * when transitioning to user mode on RISC-V. Reinstate that in stack_buffer_scenarios() [all …]
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/mgmt/ |
D | mgmt_defines.h | 2 * Copyright (c) 2018-2021 mcumgr authors 3 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 32 /** Read op-code */ 35 /** Read response op-code */ 38 /** Write op-code */ 41 /** Write response op-code */ 47 * commands. Per-user commands are then defined after group 64. 62 /** Log management group (unused) */ 65 /** Crash group (unused) */ [all …]
|
/Zephyr-latest/cmake/compiler/clang/ |
D | compiler_flags.cmake | 10 # No printf-return-value optimizations in clang 14 # But clang has problems compiling these with -fno-freestanding. 19 set_compiler_property(PROPERTY coverage -fprofile-instr-generate -fcoverage-mapping) 21 set_compiler_property(PROPERTY coverage --coverage -fno-inline) 25 set_compiler_property(PROPERTY diagnostic -fcolor-diagnostics) 28 set_compiler_property(PROPERTY save_temps -save-temps) 30 # clang doesn't handle the -T flag 31 set_compiler_property(PROPERTY linker_script -Wl,-T) 39 -Wall 40 -Wformat [all …]
|
/Zephyr-latest/boards/google/dragonclaw/ |
D | google_dragonclaw.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 10 #include <st/f4/stm32f412c(e-g)ux-pinctrl.dtsi> 14 compatible = "google,dragonclaw-fpmcu"; 18 zephyr,shell-uart = &usart2; 21 zephyr,flash-controller = &flash; 36 div-m = <8>; 37 mul-n = <192>; /* 16MHz * 192/8 = 384MHz VCO clock */ 38 div-p = <4>; /* 96MHz PLL general clock output */ 39 div-q = <8>; /* 48MHz PLL output for USB, SDIO, RNG */ [all …]
|
/Zephyr-latest/arch/sparc/core/ |
D | irq_manage.c | 2 * Copyright (c) 2019-2020 Cobham Gaisler AB 4 * SPDX-License-Identifier: Apache-2.0 13 FUNC_NORETURN void z_irq_spurious(const void *unused) in z_irq_spurious() argument 17 ARG_UNUSED(unused); in z_irq_spurious() 31 _current_cpu->nested++; in z_sparc_enter_irq() 37 ite->isr(ite->arg); in z_sparc_enter_irq() 45 ite->isr(ite->arg); in z_sparc_enter_irq() 48 _current_cpu->nested--; in z_sparc_enter_irq()
|
/Zephyr-latest/soc/ambiq/apollo3x/ |
D | power.c | 4 * SPDX-License-Identifier: Apache-2.0 15 /* ambiq-sdk includes */ 34 /* Cotex-m: power down, register value preserve.*/ in pm_state_set() 57 * @param substate_id Unused 72 * put unused flash in power down mode. in ambiq_power_init() 80 * put unused ram in power down mode. in ambiq_power_init() 86 /* For optimal Deep Sleep current, configure cache to be powered-down in deepsleep. */ in ambiq_power_init()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | settings.h | 4 * SPDX-License-Identifier: Apache-2.0 43 * as well as unused function warning. Since the declared handler structure is 44 * unused, linker will discard it.
|
/Zephyr-latest/dts/bindings/mipi-dbi/ |
D | zephyr,mipi-dbi-bitbang.yaml | 3 # SPDX-License-Identifier: Apache-2.0 6 MIPI-DBI Mode A and B bit banging controller. This driver emulates MIPI DBI mode A and B (6800 9 compatible: "zephyr,mipi-dbi-bitbang" 11 include: ["mipi-dbi-controller.yaml", "pinctrl-device.yaml"] 15 dc-gpios: 16 type: phandle-array 21 reset-gpios: 22 type: phandle-array 27 rd-gpios: 28 type: phandle-array [all …]
|
/Zephyr-latest/drivers/timer/ |
D | wch_systick_ch32v00x.c | 4 * SPDX-License-Identifier: Apache-2.0 32 static void ch32v00x_systick_irq(const void *unused) in ch32v00x_systick_irq() argument 34 ARG_UNUSED(unused); in ch32v00x_systick_irq() 36 SYSTICK->SR = 0; in ch32v00x_systick_irq() 43 return ch32v00x_systick_count + SYSTICK->CNT; in sys_clock_cycle_get_32() 55 SYSTICK->SR = 0; in ch32v00x_systick_init() 56 SYSTICK->CMP = CYCLES_PER_TICK; in ch32v00x_systick_init() 57 SYSTICK->CNT = 0; in ch32v00x_systick_init() 58 SYSTICK->CTLR = STK_STRE | STK_STCLK | STK_STIE | STK_STE; in ch32v00x_systick_init()
|
/Zephyr-latest/arch/arc/core/ |
D | vector_table.c | 4 * SPDX-License-Identifier: Apache-2.0 22 * statements would end up with the two half-words of the functions' addresses 43 /* ev_dc_error is unused in ARCv3 and de-facto unused in ARCv2 as well */
|
/Zephyr-latest/include/zephyr/net/ |
D | ptp_time.h | 4 * SPDX-License-Identifier: Apache-2.0 41 * any other well-defined context in which precision structured timestamps are 55 * For (g)PTP the media-specific message timestamp points and reference planes 56 * are defined in the standard. In non-PTP contexts specific to Zephyr, 58 * context-specific message timestamp point and reference plane, defined below 61 * A @em "LocalClock" is a freerunning clock, embedded into a well-defined 67 * driver, counter driver, RTC API driver or low-level counter/timer peripheral 74 * See IEEE 802.15.4-2020, section 15.7 for requirements in the context of 87 * network message to a well-defined point in time in the future at which it is 94 * * gPTP for Full Duplex Point-to-Point IEEE 802.3 links (IEEE 802.1AS, [all …]
|
/Zephyr-latest/arch/arm64/core/ |
D | smp.c | 4 * SPDX-License-Identifier: Apache-2.0 52 .mpid = -1, 61 [0 ... (CONFIG_MP_MAX_NUM_CPUS - 1)] = INV_MPID 76 __ASSERT(arch_curr_cpu()->id == 0, ""); in arch_cpu_start() 215 void sched_ipi_handler(const void *unused) in sched_ipi_handler() argument 217 ARG_UNUSED(unused); in sched_ipi_handler() 233 void mem_cfg_ipi_handler(const void *unused) in mem_cfg_ipi_handler() argument 235 ARG_UNUSED(unused); in mem_cfg_ipi_handler() 240 * This is a no-op if the page table is already the right one. in mem_cfg_ipi_handler() 254 void flush_fpu_ipi_handler(const void *unused) in flush_fpu_ipi_handler() argument [all …]
|