/openbmc/qemu/scripts/codeconverter/codeconverter/ |
H A D | test_regexps.py | 14 return re.fullmatch(regexp, s, re.MULTILINE) 31 assert re.search(RE_MACRO_DEFINE, r''' 38 ''', re.MULTILINE) 42 assert not re.match(RE_CHECK_MACRO, r''' 48 } while (0)''', re.MULTILINE) 59 assert re.search(RE_TYPEINFO_START, r''' 67 ''', re.MULTILINE) 68 assert re.search(RE_TYPEINFO_START, r''' 74 };''', re.MULTILINE) 128 assert re.search(TypeInfoVar.regexp, test_simple, re.MULTILINE) [all …]
|
/openbmc/openbmc/poky/meta/recipes-kernel/perf/perf/ |
H A D | sort-pmuevents.py | 12 import re 36 preamble_regex = re.compile( '^(.*?)^(struct|const struct|static struct|static const struct)', re.M… 38 preamble = re.search( preamble_regex, data ) 39 …ct_block_regex = re.compile(r'^(struct|const struct|static struct|static const struct).*?(\w+) (.*… 40 field_regex = re.compile(r'{.*?},', re.MULTILINE | re.DOTALL ) 41 cpuid_regex = re.compile(r'\.cpuid = (.*?),', re.MULTILINE | re.DOTALL ) 42 name_regex = re.compile(r'\.name = (.*?),', re.MULTILINE | re.DOTALL ) 47 for struct in re.findall( struct_block_regex, data ): 53 for entry in re.findall( field_regex, struct[3] ): 55 cpuid = re.search( cpuid_regex, entry ) [all …]
|
/openbmc/u-boot/scripts/ |
H A D | checkstack.pl | 36 my (@stack, $re, $dre, $x, $xs, $funcre); 49 $re = qr/^.*stp.*sp,\#-([0-9]{1,8})\]\!/o; 52 $re = qr/.*sub.*sp, sp, #(([0-9]{2}|[3-9])[0-9]{2})/o; 57 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o; 61 $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o; 65 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o; 68 $re = qr/.*ADD.*A0StP,A0StP,\#(0x$x{1,8})/o; 72 $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 75 $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 77 $re = qr/.*ldo ($x{1,8})\(sp\),sp/o; [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/jack/jack/ |
H A D | 0002-Fix-all-DeprecationWarning-invalid-escape-sequence.patch | 44 import copy, re, os 46 -re_imp = re.compile('^(#)*?([^#=]*?)\ =\ (.*?)$', re.M) 47 +re_imp = re.compile(r'^(#)*?([^#=]*?)\ =\ (.*?)$', re.M) 72 -re_cond = re.compile('(?P<var>\w+)|(?P<or>\|)|(?P<and>&)') 73 +re_cond = re.compile(r'(?P<var>\w+)|(?P<or>\|)|(?P<and>&)') 74 re_novar = re.compile(r'^(SRC|TGT)\W+.*?$') 75 …reg_act = re.compile(r'(?P<backslash>\\)|(?P<dollar>\$\$)|(?P<subst>\$\{(?P<var>\w+)(?P<code>.*?)\… 85 -re_m4 = re.compile('@(\w+)@', re.M) 86 +re_m4 = re.compile(r'@(\w+)@', re.M) 107 @@ -75,13 +75,13 @@ re_lines = re.compile( [all …]
|
/openbmc/linux/scripts/ |
H A D | checkstack.pl | 40 my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack); 59 $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o; 63 $re = qr/.*sub.*sp, sp, #([0-9]{1,4})/o; 69 $re = qr/^.*[as][du][db] \$(0x$x{1,8}),\%(e|r)sp$/o; 73 $re = qr/.*adds.*r12=-(([0-9]{2}|[3-9])[0-9]{2}),r12/o; 77 $re = qr/.*(?:linkw %fp,|addaw )#-([0-9]{1,4})(?:,%sp)?$/o; 80 $re = qr/.*daddiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 83 $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 86 $re = qr/.*addi.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; 89 $re = qr/.*l\.addi.*r1,r1,-(([0-9]{2}|[3-9])[0-9]{2})/o; [all …]
|
/openbmc/openbmc/poky/meta/classes-recipe/ |
H A D | kernel-arch.bbclass | 27 import re 31 if re.match('(i.86|athlon|x86.64)$', a): return 'x86' 32 elif re.match('arceb$', a): return 'arc' 33 elif re.match('armeb$', a): return 'arm' 34 elif re.match('aarch64$', a): return 'arm64' 35 elif re.match('aarch64_be$', a): return 'arm64' 36 elif re.match('aarch64_ilp32$', a): return 'arm64' 37 elif re.match('aarch64_be_ilp32$', a): return 'arm64' 38 elif re.match('loongarch(32|64|)$', a): return 'loongarch' 39 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips' [all …]
|
/openbmc/openbmc/poky/bitbake/lib/toaster/tests/functional/ |
H A D | test_functional_basic.py | 10 import re 46 …self.assertTrue(re.search("Custom images",self.driver.find_element(By.XPATH, "//div[@class='col-md… 53 …self.assertTrue(re.search("Compatible image recipes",self.driver.find_element(By.XPATH, "//div[@cl… 60 …self.assertTrue(re.search("Compatible software recipes",self.driver.find_element(By.XPATH, "//div[… 67 …self.assertTrue(re.search("Compatible machines",self.driver.find_element(By.XPATH, "//div[@class='… 74 …self.assertTrue(re.search("Compatible layers",self.driver.find_element(By.XPATH, "//div[@class='co… 81 …self.assertTrue(re.search("Bitbake variables",self.driver.find_element(By.XPATH, "//div[@class='co… 93 …self.assertTrue(re.search("qemux86-64",self.driver.find_element(By.XPATH, "//span[@id='project-mac… 110 …self.assertTrue(re.search("Yocto Project master",self.driver.find_element(By.XPATH, "//span[@id='p… 115 …self.assertTrue(re.search("3",self.driver.find_element(By.ID, "project-layers-count").text),'There… [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/musl/ |
H A D | libucontext_1.2.bb | 28 import re 33 elif re.match('(i.86|athlon)$', a): return 'x86' 34 elif re.match('x86.64$', a): return 'x86_64' 35 elif re.match('armeb$', a): return 'arm' 36 elif re.match('aarch64$', a): return 'aarch64' 37 elif re.match('aarch64_be$', a): return 'aarch64' 38 elif re.match('aarch64_ilp32$', a): return 'aarch64' 39 elif re.match('aarch64_be_ilp32$', a): return 'aarch64' 40 elif re.match('mips(isa|)(32|)(r6|)(el|)$', a): return 'mips' 41 elif re.match('mips(isa|)64(r6|)(el|)$', a): return 'mips64' [all …]
|
/openbmc/openbmc/poky/meta/lib/oe/ |
H A D | go.py | 7 import re 10 if re.match('i.86', a): 14 elif re.match('arm.*', a): 16 elif re.match('aarch64.*', a): 18 elif re.match('mips64el.*', a): 20 elif re.match('mips64.*', a): 26 elif re.match('p(pc|owerpc)(64le)', a): 28 elif re.match('p(pc|owerpc)(64)', a):
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | sm3-neon-core.S | 45 #define re w7 macro 358 ldp re, rf, [RSTATE, #16] 401 R1(ra, rb, rc, rd, re, rf, rg, rh, k_even, KL, 0, 0, IW, _, 0) 402 R1(rd, ra, rb, rc, rh, re, rf, rg, k_odd, _, 1, 1, IW, _, 0) 403 R1(rc, rd, ra, rb, rg, rh, re, rf, k_even, KL, 2, 2, IW, _, 0) 404 R1(rb, rc, rd, ra, rf, rg, rh, re, k_odd, _, 3, 3, IW, _, 0) 407 R1(ra, rb, rc, rd, re, rf, rg, rh, k_even, KL, 4, 0, IW, _, 0) 408 R1(rd, ra, rb, rc, rh, re, rf, rg, k_odd, _, 5, 1, IW, _, 0) 409 R1(rc, rd, ra, rb, rg, rh, re, rf, k_even, KL, 6, 2, IW, SCHED_W_W0W1W2W3W4W5_1, 12) 410 R1(rb, rc, rd, ra, rf, rg, rh, re, k_odd, _, 7, 3, IW, SCHED_W_W0W1W2W3W4W5_2, 12) [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_bpftool_synctypes.py | 7 import re 37 array_start = re.search(start_marker, self.reader.read()) 52 if not line or re.match(end_marker, line): 65 end_marker = re.compile('^};') 69 self.start_marker = re.compile(f'(static )?const bool {self.array_name}\[.*\] = {{\n') 83 pattern = re.compile('\[(BPF_\w*)\]\s*= (true|false),?$') 87 if line == '' or re.match(self.end_marker, line): 111 if re.search(end_marker, line): 180 start_marker = re.compile(f'enum {enum_name} {{\n') 181 pattern = re.compile('^\s*(BPF_\w+),?(\s+/\*.*\*/)?$') [all …]
|
/openbmc/qemu/scripts/ |
H A D | xml-preprocess.py | 67 import re 87 matches = re.findall(include_regex, xml_str) 97 matches = re.findall(envvar_regex, xml_str) 104 matches = re.findall(sysvar_regex, xml_str) 111 matches = re.findall(define_regex, xml_str) 118 matches = re.findall(cusvar_regex, xml_str) 128 matches = re.findall(foreach_regex, xml_str) 139 matches = re.findall(error_regex, xml_str) 143 matches = re.findall(warning_regex, xml_str) 153 matches = re.findall(ifelif_regex, xml_str) [all …]
|
H A D | python_qmp_updater.py | 8 import re 12 start_reg = re.compile(r'^(?P<padding> *)(?P<res>\w+) = (?P<vm>.*).qmp\(', 13 flags=re.MULTILINE) 15 success_reg_templ = re.sub('\n *', '', r""" 28 some_check_templ = re.sub('\n *', '', r""" 34 padding: str, res: str) -> Optional[re.Match[str]]: 35 return re.match(template.format(padding=padding, res=res), text, 36 flags=re.MULTILINE) 103 m_args = re.search('(?P<pad> *).*$', args) 117 args = re.sub('\n' + ' ' * drop, '\n', args)
|
/openbmc/linux/fs/btrfs/ |
H A D | ref-verify.c | 120 struct root_entry *re) in insert_root_entry() argument 129 if (entry->root_objectid > re->root_objectid) in insert_root_entry() 131 else if (entry->root_objectid < re->root_objectid) in insert_root_entry() 137 rb_link_node(&re->node, parent_node, p); in insert_root_entry() 138 rb_insert_color(&re->node, root); in insert_root_entry() 237 struct root_entry *re; in free_block_entry() local 243 re = rb_entry(n, struct root_entry, node); in free_block_entry() 244 rb_erase(&re->node, &be->roots); in free_block_entry() 245 kfree(re); in free_block_entry() 268 struct root_entry *re = NULL; in add_block_entry() local [all …]
|
/openbmc/u-boot/lib/ |
H A D | slre.c | 195 exact(struct slre *r, const char **re) in exact() argument 199 while (**re != '\0' && (strchr(meta_chars, **re)) == NULL) in exact() 200 store_char_in_data(r, *(*re)++); in exact() 208 get_escape_char(const char **re) in get_escape_char() argument 212 switch (*(*re)++) { in get_escape_char() 235 res = (*re)[-1]; in get_escape_char() 243 anyof(struct slre *r, const char **re) in anyof() argument 247 if (**re == '^') { in anyof() 249 (*re)++; in anyof() 252 while (**re != '\0') in anyof() [all …]
|
/openbmc/linux/tools/testing/selftests/tc-testing/plugin-lib/ |
H A D | valgrindPlugin.py | 8 import re 113 self.definitely_lost_re = re.compile( 114 … r'definitely lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\sblocks', re.MULTILINE | re.DOTALL) 115 self.indirectly_lost_re = re.compile( 116 … r'indirectly lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL) 117 self.possibly_lost_re = re.compile( 118 r'possibly lost:\s+([,0-9]+)bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL) 119 self.non_leak_error_re = re.compile( 120 … r'ERROR SUMMARY:\s+([,0-9]+) errors from\s+([,0-9]+)\s+contexts', re.MULTILINE | re.DOTALL)
|
/openbmc/linux/Documentation/sphinx/ |
H A D | automarkup.py | 15 import re 22 ascii_p3 = re.ASCII 33 RE_function = re.compile(r'\b(([a-zA-Z_]\w+)\(\))', flags=ascii_p3) 38 RE_generic_type = re.compile(r'\b(struct|union|enum|typedef)\s+([a-zA-Z_]\w+)', 45 RE_struct = re.compile(r'\b(struct)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 46 RE_union = re.compile(r'\b(union)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 47 RE_enum = re.compile(r'\b(enum)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 48 RE_typedef = re.compile(r'\b(typedef)\s+([a-zA-Z_]\w+)', flags=ascii_p3) 54 RE_doc = re.compile(r'(\bDocumentation/)?((\.\./)*[\w\-/]+)\.(rst|txt)') 56 RE_namespace = re.compile(r'^\s*..\s*c:namespace::\s*(\S+)\s*$') [all …]
|
/openbmc/openbmc-build-scripts/scripts/ |
H A D | dbus-unit-test.py | 12 import re 36 line = re.sub( 40 flags=re.DOTALL, 42 line = re.sub( 46 flags=re.DOTALL, 48 line = re.sub( 52 flags=re.DOTALL, 54 line = re.sub("<deny", "<allow", line)
|
/openbmc/openbmc/poky/meta/lib/oeqa/utils/ |
H A D | logparser.py | 9 import re 19 test_regex['PASSED'] = re.compile(r"^PASS:(.+)") 20 test_regex['FAILED'] = re.compile(r"^FAIL:([^(]+)") 21 test_regex['SKIPPED'] = re.compile(r"^SKIP:(.+)") 24 section_regex['begin'] = re.compile(r"^BEGIN: .*/(.+)/ptest") 25 section_regex['end'] = re.compile(r"^END: .*/(.+)/ptest") 26 section_regex['duration'] = re.compile(r"^DURATION: (.+)") 27 section_regex['exitcode'] = re.compile(r"^ERROR: Exit status is (.+)") 28 section_regex['timeout'] = re.compile(r"^TIMEOUT: .*/(.+)/ptest") 161 test_regex['FAILED'] = re.compile(r"FAIL") [all …]
|
/openbmc/openbmc/poky/meta-selftest/lib/oeqa/runtime/cases/ |
H A D | dnf_runtime.py | 42 import re 45 …self.assertTrue(re.match(r".*Failed to synchronize cache", output_makecache, re.DOTALL) is None, m… 46 …self.assertTrue(re.match(r".*Metadata cache created", output_makecache, re.DOTALL) is not None, ms… 49 matchobj = re.match(r".*Repo-pkgs\s*:\s*(?P<n_pkgs>[0-9]+)", output_repoinfo, re.DOTALL)
|
/openbmc/qemu/tests/tcg/aarch64/gdbstub/ |
H A D | test-mte.py | 21 import re 57 tags_match = re.findall(PATTERN_0, co, re.MULTILINE) 78 first_tag = re.match(PATTERN_1, co)[1] 81 second_tag = re.match(PATTERN_1, co)[1] 95 tag = re.match(PATTERN_1, co)[1] 98 last_tag = re.match(PATTERN_1, co)[1]
|
/openbmc/linux/arch/mips/math-emu/ |
H A D | sp_maddf.c | 18 int re; in _sp_maddf() local 155 re = xe + ye; in _sp_maddf() 166 re++; in _sp_maddf() 178 return ieee754sp_format(rs, re, rm); in _sp_maddf() 186 if (ze > re) { in _sp_maddf() 190 s = ze - re; in _sp_maddf() 192 re += s; in _sp_maddf() 193 } else if (re > ze) { in _sp_maddf() 197 s = re - ze; in _sp_maddf() 201 assert(ze == re); in _sp_maddf()
|
/openbmc/openbmc/poky/bitbake/lib/bb/parse/parse_py/ |
H A D | ConfHandler.py | 15 import re 20 __config_regexp__ = re.compile( r""" 43 """, re.X) 44 __include_regexp__ = re.compile( r"include\s+(.+)" ) 45 __require_regexp__ = re.compile( r"require\s+(.+)" ) 46 __includeall_regexp__ = re.compile( r"include_all\s+(.+)" ) 47 __export_regexp__ = re.compile( r"export\s+([a-zA-Z0-9\-_+.${}/~]+)$" ) 48 __unset_regexp__ = re.compile( r"unset\s+([a-zA-Z0-9\-_+.${}/~]+)$" ) 49 __unset_flag_regexp__ = re.compile( r"unset\s+([a-zA-Z0-9\-_+.${}/~]+)\[([a-zA-Z0-9\-_+.][a-zA-Z0-9… 50 __addpylib_regexp__ = re.compile(r"addpylib\s+(.+)\s+(.+)" ) [all …]
|
/openbmc/openbmc/meta-arm/ci/ |
H A D | patchreview | 15 import re 70 sob_re = re.compile(r"^[\t ]*(Signed[-_ ]off[-_ ]by:?)[\t ]*(.+)", re.IGNORECASE | re.MULTILINE) 71 … status_re = re.compile(r"^[\t ]*(Upstream[-_ ]Status:?)[\t ]*(\w*)", re.IGNORECASE | re.MULTILINE) 72 cve_tag_re = re.compile(r"^[\t ]*(CVE:)[\t ]*(.*)", re.IGNORECASE | re.MULTILINE) 73 cve_re = re.compile(r"cve-[0-9]{4}-[0-9]{4,6}", re.IGNORECASE)
|
/openbmc/openbmc/poky/scripts/contrib/ |
H A D | patchreview.py | 14 import re 61 sob_re = re.compile(r"^[\t ]*(Signed[-_ ]off[-_ ]by:?)[\t ]*(.+)", re.IGNORECASE | re.MULTILINE) 62 …status_re = re.compile(r"^[\t ]*(Upstream[-_ ]Status:?)[\t ]*([\w-]*)", re.IGNORECASE | re.MULTILI… 63 cve_tag_re = re.compile(r"^[\t ]*(CVE:)[\t ]*(.*)", re.IGNORECASE | re.MULTILINE) 64 cve_re = re.compile(r"cve-[0-9]{4}-[0-9]{4,6}", re.IGNORECASE)
|