| /scripts/coredump/gdbstubs/ |
| A D | gdbstub.py | 41 data = b'' 46 if ch == b'$': 52 if ch == b'#': 68 socket.send(b'+') 74 socket.send(b'-') 87 pkt = b'$' + data + b'#' 107 barray = b'' 128 pkt = b'S' 196 response = b"m1" 288 self.put_gdb_packet(b'') [all …]
|
| /scripts/native_simulator/common/src/include/ |
| A D | nsi_utils.h | 21 #define NSI_MAX(a, b) (((a) > (b)) ? (a) : (b)) argument 22 #define NSI_MIN(a, b) (((a) < (b)) ? (a) : (b)) argument
|
| /scripts/west_commands/tests/ |
| A D | test_build.py | 52 b = Build() 54 b.args = Namespace() 55 b._parse_remainder(test_case['r']) 56 assert b.args.source_dir == test_case['s'] 57 assert b.args.cmake_opts == test_case['c']
|
| /scripts/kconfig/ |
| A D | diffconfig | 100 b = readconfig(open(configb_filename)) 109 if config not in b: 119 if a[config] != b[config]: 122 del b[config] 125 print_config("->", config, a[config], b[config]) 126 del b[config] 130 new = sorted(b.keys()) 132 print_config("+", config, None, b[config])
|
| /scripts/ |
| A D | list_boards.py | 174 ret[arch] |= {b for b in boards if b.name == args.board} 235 BOARD_VALIDATOR.source = b 241 if len(mutual_exclusive - b.keys()) < 1: 245 board_array = b.get('boards', [b.get('board', None)]) 347 boards.update(b) 422 boards = {b: boards[b] for b in close_boards} 424 for b in boards.values(): 430 NAME='NAME;' + b.name, 434 HWM='HWM;' + b.hwm, 452 close_boards = difflib.get_close_matches(args.fuzzy_match, [b.name for b in boards]) [all …]
|
| /scripts/west_commands/ |
| A D | build_helpers.py | 63 b = Path('.') 66 curr = b 67 b = b.joinpath(p) 71 b = Path(str(b).format(**kwargs)) 83 return str(b)
|
| A D | sign.py | 254 b = pathlib.Path(build_dir) 274 in_bin = b / 'zephyr' / f'{kernel}.bin' 281 in_hex = b / 'zephyr' / f'{kernel}.hex' 354 def edt_flash_node(cmd, b, quiet=False): argument 360 dts = b / 'zephyr' / 'zephyr.dts' 363 edt_pickle = b / 'zephyr' / 'edt.pickle' 495 b = pathlib.Path(build_dir) 496 self.build_dir = b 525 bootloader = str(b / 'zephyr' / 'boot.mod') 527 cold = str(b / 'zephyr' / 'cold.mod') [all …]
|
| A D | bindesc.py | 28 hd = struct.unpack(b'<IIIIIIII', block[0:32]) 50 outp += b'\x00\x00\x00\x00' 53 return b''.join(outp) 296 if header.startswith(b'\x7fELF'): 300 if header.startswith(b'UF2\n'): 311 def bytes_to_uint(self, b): argument 312 return struct.unpack('>I' if self.is_big_endian else 'I', b)[0] 314 def bytes_to_short(self, b): argument 315 return struct.unpack('>H' if self.is_big_endian else 'H', b)[0]
|
| /scripts/build/ |
| A D | file2hex.py | 83 for chunk in iter(lambda: content.read(1024), b''): 87 for chunk in iter(lambda: content.read(1024), b''): 96 for chunk in iter(lambda: fp.read(1024), b''): 102 for chunk in iter(lambda: fp.read(min(1024, remainder)), b''): 109 for chunk in iter(lambda: fp.read(1024), b''): 113 for chunk in iter(lambda: fp.read(min(1024, remainder)), b''):
|
| A D | uf2conv.py | 80 outp.append(b"\x00\x00\x00\x00") 112 return b"".join(outp) 126 datapadding = b"" 128 datapadding += b"\x00\x00\x00\x00" 137 hd = struct.pack(b"<IIIIIIII", 141 chunk += b"\x00" 145 return b"".join(outp) 162 hd += b"\x00" 200 resfile = b"" 205 def to_str(b): argument [all …]
|
| A D | check_init_priorities_test.py | 168 mock_section.data.return_value = (b"\x01\x00\x00\x00" 169 b"\x02\x00\x00\x00" 170 b"\x03\x00\x00\x00") 185 mock_section.data.return_value = (b"\x01\x00\x00\x00\x00\x00\x00\x00" 186 b"\x02\x00\x00\x00\x00\x00\x00\x00" 187 b"\x03\x00\x00\x00\x00\x00\x00\x00")
|
| /scripts/pylib/pytest-twister-harness/tests/device/ |
| A D | hardware_adapter_test.py | 194 popen_mock.communicate.return_value = (b'flashing error', b'') 216 popen_mock.communicate.return_value = (b'output', b'error') 252 device.write(b'zen\n') 256 device.write(b'quit\n')
|
| /scripts/west_commands/runners/ |
| A D | core.py | 136 out = subprocess.check_output(cmd).split(b'\r\n') 137 used_bytes = [x.split()[1].rsplit(b':', 1)[1] for x in out 138 if x.startswith(b' TCP')] 139 return {int(b) for b in used_bytes} 144 used_bytes = [s.split()[3].rsplit(b':', 1)[1] for s in out] 145 return {int(b) for b in used_bytes} 149 out = subprocess.check_output(cmd).split(b'\n') 150 used_bytes = [x.split()[3].rsplit(b':', 1)[1] for x in out 151 if x.startswith(b'tcp')] 152 return {int(b) for b in used_bytes} [all …]
|
| /scripts/pylib/pytest-twister-harness/ |
| A D | README.rst | 38 west build -p -b native_sim -- -DCONFIG_UART_NATIVE_PTY_0_ON_STDINOUT=y 42 west build -p -b qemu_x86 -- -DQEMU_PIPE=qemu-fifo 46 west build -p -b nrf52840dk/nrf52840
|
| /scripts/coredump/coredump_parser/ |
| A D | log_parser.py | 12 COREDUMP_HDR_ID = b'ZE' 17 COREDUMP_ARCH_HDR_ID = b'A' 21 COREDUMP_THREADS_META_HDR_ID = b'T' 25 COREDUMP_MEM_HDR_ID = b'M'
|
| /scripts/coredump/gdbstubs/arch/ |
| A D | arm64.py | 111 pkt = b'' 120 pkt += b'x' * 16 131 self.put_gdb_packet(b'x' * 16)
|
| A D | risc_v.py | 101 pkt = b'' 111 pkt += b'x' * length 121 self.put_gdb_packet(b'x' * length)
|
| A D | x86.py | 137 pkt = b'' 146 pkt += b'x' * 8 157 self.put_gdb_packet(b'x' * 8)
|
| A D | arm_cortex_m.py | 88 pkt = b'' 97 pkt += b'x' * 8 114 self.put_gdb_packet(b'x' * 8) 120 self.put_gdb_packet(b'+')
|
| A D | x86_64.py | 174 pkt = b'' 190 pkt += b'x' * (reg_bytes * 2) 201 self.put_gdb_packet(b'x' * 16)
|
| /scripts/checkpatch/ |
| A D | typedefsfile | 7 \b[a-zA-Z_][a-zA-Z0-9_]*TypeDef
|
| /scripts/tests/twister/ |
| A D | test_jobserver.py | 27 def f(a, b, c=None, d=None): argument 134 b'+' * internal_jobs) 306 return b'?' * length 325 expected_func = functools.partial(os.write, 0, b'?') 338 write_mock.assert_any_call(0, b'?') 455 write_mock.assert_called_once_with(pipe[1], b'+' * expected_jobs)
|
| /scripts/dts/python-devicetree/src/devicetree/ |
| A D | dtlib.py | 366 self.value = b"" 1311 prop.value = b"" 1890 res = b"" 2022 def _unescape(self, b): argument 2029 if esc == b"a": 2031 if esc == b"b": 2033 if esc == b"t": 2035 if esc == b"n": 2037 if esc == b"v": 2039 if esc == b"f": [all …]
|
| /scripts/utils/ |
| A D | tls_creds_installer.py | 71 if output and b"RX ring buffer full" in output: 127 cred_hash = hashlib.sha256(cred_text.encode('utf-8') + b'\x00') 140 if output and b"command not found" in output: 184 if line == b'\r\n': 203 if b'\n' not in line:
|
| /scripts/logging/dictionary/dictionary_parser/ |
| A D | utils.py | 16 bin_data = b''
|