Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 431) sorted by relevance

12345678910>>...18

/Zephyr-latest/scripts/
Dcheckstack.pl37 my (@stack, $re, $dre, $x, $xs, $funcre);
50 $re = qr/^.*stp.*sp,\#-([0-9]{1,8})\]\!/o;
53 $re = qr/.*sub.*sp, sp, #(([0-9]{2}|[3-9])[0-9]{2})/o;
57 $re = qr/^.*sub.*sp.*,([0-9]{1,8})/o;
62 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o;
66 $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o;
70 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o;
73 $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o;
77 $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
80 $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
[all …]
Dgen_gcov_files.py14 import re
23 if re.search("GCOV_COVERAGE_DUMP_START", line):
26 if re.search("GCOV_COVERAGE_DUMP_END", line):
/Zephyr-latest/tests/subsys/logging/dictionary/pytest/
Dtest_logging_dictionary.py13 import re
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'),
85 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <inf> hello_world: info string'),
87 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <dbg> hello_world: main: int8_t 1, uint8_t 2'),
89 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <dbg> hello_world: main: int16_t 16, uint16_t 17'),
91 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <dbg> hello_world: main: int32_t 32, uint32_t 33'),
93 re.compile(r'[\s]+[\[][0-9,:\. ]+[\]] <dbg> hello_world: main: int64_t 64, uint64_t 65'),
[all …]
/Zephyr-latest/tests/subsys/debug/gdbstub/pytest/
Dtest_gdbstub.py10 import re
47 re.compile(r"Booting from ROM"),
48 re.compile(r"Booting Zephyr OS build"),
49 re.compile(r"main\(\):enter"),
55 re.compile(r'Breakpoint 1 at 0x'),
56 re.compile(r'Breakpoint 2 at 0x'),
57 re.compile(r'Breakpoint 1, test '),
58 re.compile(r'Breakpoint 2, main '),
59 re.compile(r'GDB:PASSED'),
60 re.compile(r'Breakpoint 3, k_thread_abort '),
[all …]
/Zephyr-latest/scripts/build/
Dprocess_gperf.py23 import re
87 if re.search(args.pattern + " [*]$", line):
91 m = re.search("gperf version (.*) [*][/]$", line)
102 line = re.sub(r'lengthtable\[key\]', r'sizeof(void *)', line)
105 line = re.sub(r'[{]["]["][}]', r'{}', line)
108 line = re.sub(r'static unsigned char lengthtable',
114 line = re.sub(r'register', r'', line)
117 line = re.sub(r"hash [(]str, len[)]",
121 if re.search("if [(][*]str", line):
127 line = re.sub(r'["].*["]', reformat_str, line)
[all …]
/Zephyr-latest/scripts/gitlint/
Dzephyr_commit_rules.py18 import re
67 flags = re.UNICODE
68 flags |= re.IGNORECASE
71 … if not re.search(r"(^)Signed-off-by: ([-'\w.]+) ([-'\w.]+) (.*)", line, flags=flags):
97 pattern = re.compile(regex, re.UNICODE)
111 …urls = re.findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+…
128 flags = re.IGNORECASE
130 if re.search(rf"^\s*{tag}:", line, flags=flags):
/Zephyr-latest/scripts/utils/
Dmigrate_sys_init.py18 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)
Dpinctrl_nrf_migrate.py84 import re
192 if re.match(r"\s*};.*", line):
253 m = re.match(r'^#include\s+(?:"|<).*nrf.*(?:>|").*', line)
346 m = re.match(r'^#include\s+".*-pinctrl\.dtsi".*', line)
352 m = re.match(r'^#include\s+(?:"|<)(.*)(?:>|").*', line)
358 m = re.match(r"^\s*/\s*{.*", line)
393 m = re.match(r"^[^&]*&([a-z0-9]+)\s*{[^}]*$", line)
398 if re.match(device.pattern, m.group(1)):
411 if re.match(r"[^\/\*]*{.*", line):
414 elif re.match(r"[^\/\*]*}.*", line):
[all …]
Dboard_v1_to_v2.py35 import re
100 m = re.match(r"^CONFIG_BOARD_.*$", line)
105 m = re.match(r"^CONFIG_(SOC_[A-Z0-9_]+).*$", line)
108 if not re.match(r"^CONFIG_SOC_SERIES_.*$", line):
112 if dropped_line and re.match(r"^$", line):
130 m = re.match(r"^config BOARD$", line)
135 if in_board and re.match(r"^\s+.*$", line):
140 m = re.match(r"^config .*$", line)
144 m = re.match(rf"^(.*)BOARD_{board.upper()}(.*)$", line)
Dmigrate_mcumgr_kconfigs.py18 import re
125 if re.match(".*" + m + ".*", line) and len(m) > length:
149 cfp = re.compile(".+/" + fp + "$")
150 if re.match(cfp, str(p)) is not None:
Dmigrate_posix_kconfigs.py21 import re
93 if re.match(".*" + m + ".*", line) and len(m) > length:
129 cfp = re.compile(".+/" + fp + "$")
130 if re.match(cfp, str(p)) is not None:
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Dtestsuite.py11 import re
70 regular_suite_regex = re.compile(
75 re.MULTILINE)
76 registered_suite_regex = re.compile(
79 re.MULTILINE)
80 new_suite_regex = re.compile(
82 re.MULTILINE)
83 testcase_regex = re.compile(
86 re.MULTILINE)
93 test_main_regex = re.compile(
[all …]
Dquarantine.py9 import re
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]
144 def _is_element_matched(element: str, list_of_elements: list[re.Pattern]) -> bool:
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_platform.py10 import re
125 board_error = re.search(error_regex, log)
250 pass_search = re.search(pass_regex, err, re.MULTILINE)
258 built_search = re.search(built_regex, err, re.MULTILINE)
324 select_search = re.search(select_regex, err, re.MULTILINE)
338 pass_search = re.search(pass_regex, err, re.MULTILINE)
354 case_search = re.search(case_regex, err, re.MULTILINE)
363 skip_search = re.search(skip_regex, err, re.MULTILINE)
369 built_search = re.search(built_regex, err, re.MULTILINE)
Dtest_quarantine.py13 import re
92 … board1_match1 = re.search('agnostic/group2/dummy.agnostic.group2 FILTERED: Quarantine: test '
94 board1_match2 = re.search(
98 qemu_64_match = re.search(
102 all_platforms_match = re.search(
106 all_platforms_match2 = re.search(
110 all_platforms_match3 = re.search(
Dtest_runner.py14 import re
220 built_search = re.search(built_regex, err, re.MULTILINE)
298 select_search = re.search(select_regex, err, re.MULTILINE)
312 pass_search = re.search(pass_regex, err, re.MULTILINE)
326 case_search = re.search(case_regex, err, re.MULTILINE)
335 skip_search = re.search(skip_regex, err, re.MULTILINE)
340 built_search = re.search(built_regex, err, re.MULTILINE)
405 pass_search = re.search(pass_regex, err, re.MULTILINE)
413 built_search = re.search(built_regex, err, re.MULTILINE)
491 pattern = re.compile(r'INFO\s+-\s+(\d+)\s+Iteration:[\s\S]*?ERROR\s+-\s+(\w+)')
[all …]
Dtest_disable.py14 import re
94 assert re.search(expected[0], err) is None, f"Not expected string in log: {expected[0]}"
95 assert re.search(expected[1], err) is None, f"Not expected: {expected[1]}"
97 assert re.search(expected[0], err) is not None, f"Expected string in log: {expected[0]}"
98 assert re.search(expected[1], err) is not None, f"Expected string in log: {expected[1]}"
Dtest_output.py10 import re
138 c_pattern = re.compile(pattern, flags=re.MULTILINE)
139 inline_twister_log = re.sub(c_pattern, '', inline_twister_log)
140 build_log = re.sub(c_pattern, '', build_log)
153 match = re.fullmatch(regex_line[i], column)
183 debug_matches = re.search(regex_debug_line, err, re.MULTILINE)
/Zephyr-latest/arch/xtensa/core/
Dgen_vectors.py5 import re
67 m = re.match(r"^#define\s+XCHAL_([^ ]+)_VECOFS\s*(.*)", line.rstrip())
82 m = re.match(r"XCHAL_INTLEVEL(\d+)_VECOFS", val)
94 m = re.match(r"^INTLEVEL(\d+)", sym)
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_dtlib.py6 import re
120 assert re.fullmatch(err_matches, actual_err), \
1523 re.escape("to be assigned with either 'a = &foo' or 'a = \"/path/to/node\"', not 'a = [ 00 ];'"))
1534 re.escape(r"value of property 'a' (b'\xff\x00') on /aliases in ") +
1685 re.escape("'two_u = < (number) >;', not 'two_u = < 0x1 0x2 >;'"))
1689 re.escape("'u8 = < (number) >;', not 'u8 = [ 01 ];'"))
1693 re.escape("'u16 = < (number) >;', not 'u16 = /bits/ 16 < 0x1 0x2 >;'"))
1697 re.escape("'u64 = < (number) >;', not 'u64 = /bits/ 64 < 0x1 >;'"))
1701 re.escape("'string = < (number) >;', not 'string = \"foo\\tbar baz\";'"))
1727 re.escape("'empty = < (number) (number) ... >;', not 'empty;'"))
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/
Dshell.py8 import re
64 regex_prompt = re.escape(self.prompt)
104 regex_filter = re.compile(
105 '|'.join([re.escape(self.prompt), '<dbg>', '<inf>', '<wrn>', '<err>'])
144 re_area = re.compile(r'(.+ area.*):\s*$')
145 re_key = re.compile(r'(?P<key>.+):(?P<val>.+)')
Dmcumgr.py7 import re
70 re_image = re.compile(r'image=(\d+)\s+slot=(\d+)')
71 re_version = re.compile(r'version:\s+(\S+)')
72 re_flags = re.compile(r'flags:\s+(.+)')
73 re_hash = re.compile(r'hash:\s+(\w+)')
/Zephyr-latest/doc/_extensions/zephyr/
Ddoxyrunner.py48 import re
95 option_re = re.compile(r"^\s*([A-Z0-9_]+)\s*=\s*(.*)$")
96 multiline_re = re.compile(r"^\s*(.*)$")
163 content = re.sub(
167 flags=re.MULTILINE,
170 content = re.sub(
174 flags=re.MULTILINE,
177 content = re.sub(
181 flags=re.MULTILINE,
254 m = re.match(r"(.*):(\d+): ([a-z]+): (.*)", line)
/Zephyr-latest/boards/seagate/faze/support/
Dopenocd.cfg17 # 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
/Zephyr-latest/scripts/west_commands/zspdx/
Dspdxids.py5 import re
59 p = re.compile(r"-\d+$")

12345678910>>...18