/Zephyr-latest/tests/subsys/debug/gdbstub/pytest/ |
D | test_gdbstub.py | 3 # SPDX-License-Identifier: Apache-2.0 10 import re 21 def gdb_process(dut: DeviceAdapter, gdb_script, gdb_timeout, gdb_target_remote) -> subprocess.Compl… 31 cmd = [gdb_exec, '-batch', 32 '-ex', f'set pagination off', 33 '-ex', f'set trace-commands on', 34 '-ex', f'set logging file {gdb_log_file}', 35 '-ex', f'set logging enabled on', 36 '-ex', f'target remote {gdb_target_remote}', 37 '-x', f'{source_dir}/{gdb_script}', build_image] [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/include/mgmt/mcumgr/transport/ |
D | smp_reassembly.h | 4 * SPDX-License-Identifier: Apache-2.0 17 * Initialize re-assembly context within smp_transport 27 * Collect data to re-assembly buffer 29 * The function adds data to the end of current re-assembly buffer; it will allocate new buffer 32 * Note: Currently the function is not able to concatenate buffers so re-assembled packet needs 41 * point in passing an empty fragment for re-assembly. 45 * -ENOSR if a packet length, read from header, is bigger than 48 * -EOVERFLOW if attempting to add a fragment that would make complete packet larger 50 * -ENOMEM if failed to allocate a new buffer for packet assembly; 51 * -ENODATA if the first received fragment was not big enough to figure out a size [all …]
|
/Zephyr-latest/tests/subsys/logging/dictionary/pytest/ |
D | test_logging_dictionary.py | 4 # SPDX-License-Identifier: Apache-2.0 13 import re 43 # timeout earlier with per-test timeout. 44 handler_output = dut.readlines_until(regex = '.*##ZLOGV1##[0-9]+', timeout = 600.0) 54 with open(encoded_log_file, 'w', encoding='utf-8') as fp: 58 cmd = [parser_script, '--hex', dictionary_json, encoded_log_file] 77 re.compile(r'.*[*][*][*] Booting Zephyr OS build [0-9a-z.-]+'), 79 re.compile(r'[\s]+Hello World! [\w-]+'), 81 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <err> hello_world: error string'), 83 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <dbg> hello_world: main: debug string'), [all …]
|
/Zephyr-latest/scripts/ |
D | checkstack.pl | 8 # s390 port and big speedup by Arnd Bergmann <arnd@bergmann-dalldorf.de> 20 # objdump -d vmlinux | scripts/checkstack.pl [arch] 28 # $re is used for two matches: 29 # $& (whole re) matches the complete objdump line with the stack growth 33 # $& (whole re) matches the complete objdump line with the stack growth 37 my (@stack, $re, $dre, $x, $xs, $funcre); 41 $arch = `uname -m`; 45 $x = "[0-9a-f]"; # hex character 46 $xs = "[0-9a-f ]"; # hex character or space 49 #ffffffc0006325cc: a9bb7bfd stp x29, x30, [sp,#-80]! [all …]
|
D | gen_gcov_files.py | 5 # SPDX-License-Identifier: Apache-2.0 14 import re 23 if re.search("GCOV_COVERAGE_DUMP_START", line): 26 if re.search("GCOV_COVERAGE_DUMP_END", line): 36 hex_dump = line.split("<")[1][:-1] 53 filename = filename[:-4] + "gcno" 69 parser.add_argument("-i", "--input", required=True, 71 parser.add_argument("-v", "--verbose", action="count", default=0,
|
/Zephyr-latest/scripts/build/ |
D | process_gperf.py | 5 # SPDX-License-Identifier: Apache-2.0 8 gperf C file post-processor 15 We are exclusively working with 4-byte pointer values. This script adjusts 23 import re 26 # --- debug stuff --- 51 addr_str = addr_str[1:-1] 75 ctr -= 1 87 if re.search(args.pattern + " [*]$", line): 91 m = re.search("gperf version (.*) [*][/]$", line) 100 # Replace length lookups with constant len since we're always [all …]
|
/Zephyr-latest/boards/seagate/faze/support/ |
D | openocd.cfg | 5 # An external debug probe must be connected to the SWD port (4-pins J2 header). 6 # Here we assume that a ST-LINK in-circuit debugger/programmer is used. You may 10 # NXP LPC11U24 Cortex-M0 with 128KB Flash and 20KB + 4KB SRAM 17 # This ensures that the interrupt vectors (0x0000-0x0200) are re-mapped to 25 # 0x0 Boot Loader Mode. Interrupt vectors are re-mapped to 27 # 0x1 User RAM Mode. Interrupt vectors are re-mapped to 29 # 0x2 User Flash Mode. Interrupt vectors are not re-mapped 31 # 31:2 - - Reserved. 32 $_TARGETNAME configure -event reset-end { 37 $_TARGETNAME configure -rtos Zephyr
|
/Zephyr-latest/scripts/utils/ |
D | migrate_sys_init.py | 11 -p path/to/zephyr-based-project 14 SPDX-License-Identifier: Apache-2.0 18 import re 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) 50 m = re.match( 61 m = re.match(r"^\s?ARG_UNUSED\(" + arg + r"\);.*$", line) 68 m = re.match(r"^\s?\n$", line) 85 "-p", "--project", type=Path, required=True, help="Zephyr-based project path" 87 parser.add_argument("--dry-run", action="store_true", help="Dry run")
|
D | board_v1_to_v2.py | 12 - ``-b|--board``: The name of the board to migrate. 13 - ``-g|--group``: The group the board belongs to. This is used to group a set of 16 - ``-v|--vendor``: The vendor name. 17 - ``-s|--soc``: The SoC name. 21 this is no longer needed. In such cases, ``-n|--new-board`` needs to be 24 For boards with variants, ``--variants`` needs to be provided. 26 For out-of-tree boards, provide ``--board-root`` pointing to the custom board 30 SPDX-License-Identifier: Apache-2.0 35 import re 77 with open(board_settings_file, encoding='utf-8') as f: [all …]
|
D | pinctrl_nrf_migrate.py | 4 # SPDX-License-Identifier: Apache-2.0 11 nRF-based boards using the old <signal>-pin properties to select peripheral 13 file by removing old pin-related properties replacing them with pinctrl states. 14 A board-pinctrl.dtsi file will be generated containing the configuration for 28 -i path/to/board.dts 29 [--no-backup] 30 [--skip-nrf-check] 31 [--header ""] 35 .. code-block:: devicetree 41 tx-pin = <5>; [all …]
|
/Zephyr-latest/boards/nxp/lpcxpresso11u68/support/ |
D | openocd.cfg | 5 # https://www.embeddedartists.com/products/lpc11u68-lpcxpresso/ 9 # The on-board LPC-Link2 debug probe (based on a NXP LPC43xx MCU) provides 10 # either a CMSIS-DAP or a J-Link interface. It depends on the version of the 12 source [find interface/cmsis-dap.cfg] 15 # NXP LPC11U68 Cortex-M0 with 256kB flash and 32kB + 4kB SRAM. 20 # This ensures that the interrupt vectors (0x0000-0x0200) are re-mapped to 28 # 0x0 Boot Loader Mode. Interrupt vectors are re-mapped to 30 # 0x1 User RAM Mode. Interrupt vectors are re-mapped to 32 # 0x2 User Flash Mode. Interrupt vectors are not re-mapped 34 # 31:2 - - Reserved. [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | testsuite.py | 3 # Copyright (c) 2018-2024 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 11 import re 70 regular_suite_regex = re.compile( 71 # do not match until end-of-line, otherwise we won't allow 73 # line--as we only search starting the end of this match 74 br"^\s*ztest_test_suite\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,", 75 re.MULTILINE) 76 registered_suite_regex = re.compile( 78 br"\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,", [all …]
|
D | quarantine.py | 4 # SPDX-License-Identifier: Apache-2.0 9 import re 31 def __init__(self, quarantine_list=None) -> None: 69 # keep precompiled regexp entiries to speed-up matching 70 self.re_scenarios = [re.compile(pat) for pat in self.scenarios] 71 self.re_platforms = [re.compile(pat) for pat in self.platforms] 72 self.re_architectures = [re.compile(pat) for pat in self.architectures] 73 self.re_simulations = [re.compile(pat) for pat in self.simulations] 97 def load_data_from_yaml(cls, filename: str | Path) -> QuarantineData: 99 with open(filename, encoding='UTF-8') as yaml_fd: [all …]
|
/Zephyr-latest/scripts/tests/twister_blackbox/ |
D | test_quarantine.py | 4 # SPDX-License-Identifier: Apache-2.0 13 import re 17 # pylint: disable=duplicate-code 38 quarantine_path = os.path.join(TEST_DATA, 'twister-quarantine-list.yml') 39 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 40 ['--quarantine-verify'] + \ 41 ['--quarantine-list', quarantine_path] + \ 43 ['-p'] * len(test_platforms), test_platforms 68 os.path.join(TEST_DATA, 'twister-quarantine-list.yml'), 77 args = ['--outdir', out_path, '-T', test_path] +\ [all …]
|
D | test_platform.py | 4 # SPDX-License-Identifier: Apache-2.0 10 import re 17 # pylint: disable=no-name-in-module 110 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 111 (['--board-root', board_root_path] if board_root else []) + \ 113 ['-p'] * len(test_platforms), test_platforms 124 … error_regex = r'ERROR.*platform_filter\s+-\s+unrecognized\s+platform\s+-\s+dummy/unit_testing$' 125 board_error = re.search(error_regex, log) 133 args = ['-i', '--outdir', out_path, '-T', path, '-y'] + \ 134 ['--force-platform'] + \ [all …]
|
D | test_runner.py | 2 # Copyright (c) 2023-2024 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 8 # pylint: disable=duplicate-code 14 import re 18 # pylint: disable=no-name-in-module 200 ['--build-only', '-b'] 203 args = ['-i', '--outdir', out_path, '-T', test_path, flag] + \ 205 ['-p'] * len(test_platforms), test_platforms 212 built_regex = r'^INFO - (?P<executed_on_platform>[0-9]+)' \ 213 r' test configurations executed on platforms, (?P<only_built>[0-9]+)' \ [all …]
|
D | test_output.py | 4 # SPDX-License-Identifier: Apache-2.0 10 import re 17 # pylint: disable=no-name-in-module 26 (['-ll', 'DEBUG']), 27 (['-v']), 28 (['-v', '-ll', 'DEBUG']), 29 (['-vv']), 30 (['-vv', '-ll', 'DEBUG']), 47 ('--no-detailed-test-id', False), 48 ('--detailed-test-id', True) [all …]
|
D | test_disable.py | 4 # SPDX-License-Identifier: Apache-2.0 14 import re 26 '--disable-suite-name-check', 33 '-v', 42 '--disable-warnings-as-errors', 48 '-v', 71 'disable-suite-name-check', 72 'suite-name-check' 77 args = ['-i', '--outdir', out_path, '-T', test_path] + \ 79 ['-vv', '-ll', 'DEBUG'] + \ [all …]
|
/Zephyr-latest/scripts/gitlint/ |
D | zephyr_commit_rules.py | 1 # SPDX-License-Identifier: Apache-2.0 4 The classes below are examples of user-defined CommitRules. Commit rules are gitlint rules that 18 import re 22 name = "body-min-line-count" 24 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule). 28 … options_spec = [IntOption('min-line-count', 1, "Minimum body line count excluding Signed-off-by")] 31 …filtered = [x for x in commit.message.body if not x.lower().startswith("signed-off-by") and x != '… 33 min_line_count = self.options['min-line-count'].value 40 name = "body-max-line-count" 42 # A rule MUST have an *unique* id, we recommend starting with UC (for User-defined Commit-rule). [all …]
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/ |
D | shell.py | 3 # SPDX-License-Identifier: Apache-2.0 8 import re 27 ) -> None: 32 def wait_for_prompt(self, timeout: float | None = None) -> bool: 55 ) -> list[str]: 58 is extended by double enter sings - first one to execute this command 64 regex_prompt = re.escape(self.prompt) 65 regex_command = f'.*{re.escape(command)}' 69 … # wait for device command print - it should be done immediately after sending command to device 83 def get_filtered_output(self, command_lines: list[str]) -> list[str]: [all …]
|
D | mcumgr.py | 3 # SPDX-License-Identifier: Apache-2.0 7 import re 30 """Sample wrapper for mcumgr command-line tool""" 37 def create_for_serial(cls, serial_port: str) -> MCUmgr: 38 return cls(connection_options=f'--conntype serial --connstring={serial_port}') 41 def is_available(cls) -> bool: 48 def run_command(self, cmd: str) -> str: 57 command = f'-t {timeout} image upload {image}' 59 command += f' -e -n {slot}' 63 def get_image_list(self) -> list[MCUmgrImage]: [all …]
|
/Zephyr-latest/tests/bluetooth/l2cap/src/ |
D | main.c | 1 /* main.c - Application main entry point */ 6 * SPDX-License-Identifier: Apache-2.0 20 return -ENOSYS; in l2cap_accept() 62 /* Attempt to re-register server with PSM auto allocation */ in ZTEST() 66 /* Attempt to re-register server with fixed PSM */ in ZTEST() 70 /* Attempt to re-register server with dynamic PSM */ in ZTEST()
|
/Zephyr-latest/doc/_extensions/zephyr/ |
D | doxyrunner.py | 6 SPDX-License-Identifier: Apache-2.0 16 - Doxygen build is run before Sphinx reads input files 17 - Doxyfile can be optionally pre-processed so that variables can be inserted 18 - Changes in the Doxygen input files are tracked so that Doxygen build is only 20 - Synchronizes Doxygen XML output so that even if Doxygen is run only changed, 25 - https://github.com/michaeljones/breathe/issues/420 30 - ``doxyrunner_doxygen``: Path to the Doxygen binary. 31 - ``doxyrunner_silent``: If Doxygen output should be logged or not. Note that 33 - ``doxyrunner_projects``: Dictionary specifying projects, keys being project 36 - ``doxyfile``: Path to Doxyfile. [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 25 int "SMP command re-send period in ms" 29 The time (in ms) which the SMP client will wait for a response before re-sending 39 module-str = mcumgr_smp_client
|
/Zephyr-latest/scripts/pylib/shell-twister-harness/ |
D | test_shell.py | 3 # SPDX-License-Identifier: Apache-2.0 5 import re 16 return request.config.getoption("--testdata") 37 if re.match(expected, line):
|