/gem5/ext/googletest/googletest/scripts/ |
H A D | common.py | 35 import re 43 _SVN_INFO_URL_RE = re.compile(r'^URL: https://(\w+)\.googlecode\.com/svn(.*)')
|
H A D | release_docs.py | 67 import re 107 self.search_for_re = re.compile( 124 not re.match(r'^V\d', f) and # Excluded versioned .wiki files.
|
H A D | pump.py | 68 import re 73 (re.compile(r'\$var\s+'), '$var'), 74 (re.compile(r'\$elif\s+'), '$elif'), 75 (re.compile(r'\$else\s+'), '$else'), 76 (re.compile(r'\$for\s+'), '$for'), 77 (re.compile(r'\$if\s+'), '$if'), 78 (re.compile(r'\$range\s+'), '$range'), 79 (re.compile(r'\$[_A-Za-z]\w*'), '$id'), 80 (re.compile(r'\$\(\$\)'), '$($)'), 81 (re [all...] |
H A D | fuse_gtest_files.py | 62 import re 74 INCLUDE_GTEST_FILE_REGEX = re.compile(r'^\s*#\s*include\s*"(gtest/.+)"') 77 INCLUDE_SRC_FILE_REGEX = re.compile(r'^\s*#\s*include\s*"(src/.+)"')
|
/gem5/src/systemc/tests/ |
H A D | config.py | 33 import re
|
/gem5/ext/googletest/googletest/test/ |
H A D | gtest_list_tests_unittest.py | 43 import re 56 EXPECTED_OUTPUT_NO_FILTER_RE = re.compile(r"""FooDeathTest\. 100 EXPECTED_OUTPUT_FILTER_FOO_RE = re.compile(r"""FooDeathTest\.
|
H A D | gtest_xml_test_utils.py | 36 import re 172 timestamp.value = re.sub(r'^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d$', 176 time.value = re.sub(r'^\d+(\.\d+)?$', '*', time.value) 184 message.value = re.sub(source_line_pat, '\\1*\n', message.value) 188 cdata = re.sub(source_line_pat, '\\1*\n', child.nodeValue) 190 child.nodeValue = re.sub(r'\nStack trace:\n(.|\n)*',
|
H A D | gtest-port_test.cc | 441 const RE re(TypeParam("a.*z")); 442 EXPECT_TRUE(RE::FullMatch(TypeParam("az"), re)); 443 EXPECT_TRUE(RE::FullMatch(TypeParam("axyz"), re)); 444 EXPECT_FALSE(RE::FullMatch(TypeParam("baz"), re)); 445 EXPECT_FALSE(RE::FullMatch(TypeParam("azy"), re)); 454 const RE re(TypeParam("a.*z")); 455 EXPECT_TRUE(RE::PartialMatch(TypeParam("az"), re)); 456 EXPECT_TRUE(RE::PartialMatch(TypeParam("axyz"), re)); 457 EXPECT_TRUE(RE::PartialMatch(TypeParam("baz"), re)); 458 EXPECT_TRUE(RE::PartialMatch(TypeParam("azy"), re)); [all...] |
/gem5/util/ |
H A D | find_copyrights.py | 4 import re 9 mode_line = re.compile('(-\*- *mode:.* *-\*-)') 10 shell_comment = re.compile(r'^\s*#') 11 lisp_comment = re.compile(r';') 12 cpp_comment = re.compile(r'//') 13 c_comment_start = re.compile(r'/\*') 14 c_comment_end = re.compile(r'\*/') 98 date_range_re = re.compile(r'([0-9]{4})\s*-\s*([0-9]{4})') 119 re.compile(r'Copyright (\([cC]\)) ([-, 0-9]+)[\s*#/]*([A-z-,. ]+)', 120 re [all...] |
H A D | checkpoint_aggregator.py | 35 import sys, re, os 68 if re.compile("cpu").search(sec): 69 newsec = re.sub("cpu", "cpu" + str(i).zfill(num_digits), sec) 79 if re.compile("workload.FdMap256$").search(sec):
|
H A D | checkpoint-tester.py | 67 import os, sys, re 104 expr = re.compile('cpt\.([0-9]*)')
|
/gem5/util/style/ |
H A D | style.py | 48 import re 54 lead = re.compile(r'^([ \t]+)') 55 trail = re.compile(r'([ \t]+)$') 56 any_control = re.compile(r'\b(if|while|for)([ \t]*)\(') 102 rex = re.compile(expr)
|
H A D | sort_includes.py | 45 import re 70 include_re = re.compile(r'([#%])(include|import).*[<"](.*)[">]') 98 rex = re.compile(r'^(%s)\s*%s(.*)%s(.*)$' % (keyword, delim[0], delim[1])) 111 rex = re.compile(fname) 129 rex = re.compile(r"^src/(.*)\.([^.]+)$")
|
/gem5/site_scons/site_tools/ |
H A D | mercurial.py | 42 import re 48 You're missing the gem5 style hook, which automatically checks your code 106 re_style_hook = re.compile(r"^([^=#]+)\.style\s*=\s*([^#\s]+).*") 107 re_style_extension = re.compile("style\s*=\s*([^#\s]+).*")
|
/gem5/util/plot_dram/ |
H A D | dram_lat_mem_rd_plot.py | 49 import re 82 match = re.match("lat_mem_rd with (\d+) iterations, ranges:.*", line) 97 match = re.match(".*readLatencyHist::mean\s+(.+)\s+#.*", line)
|
H A D | dram_sweep_plot.py | 50 import re 89 match = re.match("DRAM sweep with " 109 match = re.match(".*busUtil\s+(\d+\.\d+)\s+#.*", line) 113 match = re.match(".*peakBW\s+(\d+\.\d+)\s+#.*", line) 117 match = re.match(".*averagePower\s+(\d+\.?\d*)\s+#.*", line)
|
/gem5/tests/gem5/test_build/ |
H A D | test_build.py | 32 import re
|
/gem5/util/cpt_upgraders/ |
H A D | arm-hdlcd-upgrade.py | 44 import re 77 if re.search('.*\.hdlcd$', sec):
|
H A D | arm-gicv2-banked-regs.py | 40 import re 42 if not re.search('\.gic$', sec):
|
H A D | armv8.py | 5 import re 8 "physical registers in the CPU you're restoring into by "\ 12 re_xc_match = re.match('^.*?sys.*?\.cpu(\d+)*\.xc\.*', sec) 38 re_int_match = re.match("^.*?sys.*?\.cpu(\d+)*$", sec) 49 re_int_match = re.match("^.*?sys.*?\.cpu(\d+)*\.interrupts$", sec) 60 re_isa_match = re.match("^.*?sys.*?\.cpu(\d+)*\.isa$", sec) 254 re_tlb_match = re.match('(^.*?sys.*?\.cpu(\d+)*)\.(dtb|itb)$', sec) 270 re_tlbentry_match = re.match('(^.*?sys.*?\.cpu(\d+)*)\.(dtb|itb).TlbEntry\d+$', sec)
|
/gem5/src/python/m5/util/ |
H A D | code_formatter.py | 36 import re 105 'delim' : re.escape(cls.delim), 108 'lb' : re.escape(lb), 109 'rb' : re.escape(rb), 110 'ldb' : re.escape(lb1+lb2), 111 'rdb' : re.escape(rb2+rb1), 113 cls.pattern = re.compile(pat, re.VERBOSE | re.DOTALL | re [all...] |
H A D | dot_writer.py | 63 import m5, os, re 89 full_path = re.sub('\.', '_', simNode.path()) 115 full_path = re.sub('\.', '_', simNode.path()) 133 full_peer_path = re.sub('\.', '_', peer.simobj.path()) 280 label = re.sub('\.', '_', str(label)) 281 full_path = re.sub('\.', '_', str(c_dom)) 299 full_path = re.sub('\.', '_', simNode.path()) 323 # Just re-use the domain from above
|
/gem5/src/arch/hsail/ |
H A D | gen.py | 38 import sys, re 581 # if the RHS expression includes 'dest', then we're doing an RMW 586 expr = re.sub(r'\bsrc(\d)\b', r'src_val\1', expr) 588 expr = re.sub(r'\bsrc(\d)\b', r'src_val[\1]', expr) 590 expr = re.sub(r'\bsrc(\d)\b', r'src_val\1', expr) 591 expr = re.sub(r'\bdest\b', r'dest_val', expr) 595 base_class_base = re.sub(r'<.*>$', '', base_class) 626 type_size = int(re.findall(r'[0-9]+', type_name)[0])
|
/gem5/tests/testing/ |
H A D | helpers.py | 45 import re 139 re_obj = r if hasattr(r, "search") else re.compile(r) 178 rex=(r"~$", re.compile("^#")))
|
/gem5/ext/libfdt/ |
H A D | fdt_sw.c | 91 struct fdt_reserve_entry *re; local 100 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) 103 re = (struct fdt_reserve_entry *)((char *)fdt + offset); 104 re->address = cpu_to_fdt64(addr); 105 re->size = cpu_to_fdt64(size); 107 fdt_set_off_dt_struct(fdt, offset + sizeof(*re));
|