Searched refs:re (Results 1 - 25 of 107) sorted by relevance

12345

/gem5/util/minorview/
H A Dparse.py38 import re
44 elems = re.split(',', names)
48 if re.search('^\((.*)\)$', elem):
49 accum.append(re.sub('^\((.*)\)', '\\1', elem))
52 elif re.search('^\(', elem):
53 accum.append(re.sub('^\(', '', elem))
54 elif re.search('\)$', elem):
55 accum.append(re.sub('\)$', '', elem))
74 return re.sub('\s*$', '', line)
77 return re
[all...]
/gem5/util/cpt_upgraders/
H A Dcpu-pid.py3 import re
5 if re.search('.*sys.*cpu', sec):
H A Ddvfs-perflevel.py4 import re
6 if re.match('^.*sys.*[._]clk_domain$', sec):
9 elif re.match('^.*sys.*[._]voltage_domain$', sec):
H A Dx86-add-tlb.py5 import re
7 if re.search('.*sys.*\.cpu.*\.dtb$', sec):
11 if re.search('.*sys.*\.cpu.*\.itb$', sec):
H A Darm-contextidr-el2.py5 import re
7 if re.search('.*sys.*\.cpu.*\.isa$', sec):
H A Darm-miscreg-teehbr.py5 import re
7 if re.search('.*sys.*\.cpu.*\.isa$', sec):
H A Dremove-arm-cpsr-mode-miscreg.py5 import re
7 if re.search('.*sys.*\.cpu.*\.isa$', sec):
H A Dmemory-per-range.py6 import re
8 if re.search('.*sys.*\.physmem$', sec):
26 elif re.search('.*sys.*\.\w*mem$', sec):
H A Dprocess-fdmap-rename.py12 import re
16 if re.match('.*\.%s.*' % fdm, sec):
17 rename = re.sub(fdm, fde, sec)
18 split = re.split(fde, rename)
H A Dsmt-interrupts.py6 import re
8 re_cpu_match = re.match('^(.*sys.*\.cpu[^._]*)$', sec)
H A Darm-ccregs.py6 import re
8 re_cpu_match = re.match('^(.*sys.*\.cpu[^.]*)\.xc\.(.+)$', sec)
H A Darm-gem5-gic-ext.py43 import re
68 if re.search('.*\.gic$', sec):
H A Darm-sve.py12 import re
14 if re.search('.*sys.*\.cpu.*\.isa$', sec):
H A Disa-is-simobject.py26 import re
28 re_cpu_match = re.match('^(.*sys.*\.cpu[^.]*)\.xc\.(.+)$', sec)
H A Darm-sysreg-mapping-ns.py40 import re
42 if re.search('.*sys.*\.cpu.*\.isa\d*$', sec):
/gem5/ext/googletest/googlemock/test/
H A Dgmock_output_test.py44 import re
68 output = re.sub(r'.*gtest_main.*\n', '', output)
69 output = re.sub(r'\[.*\d+ tests.*\n', '', output)
70 output = re.sub(r'\[.* test environment .*\n', '', output)
71 output = re.sub(r'\[=+\] \d+ tests .* ran.*', '', output)
72 output = re.sub(r'.* FAILED TESTS\n', '', output)
89 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\:', 'FILE:#:', output)
95 return re.sub(r' error: ', ' Failure\n', output)
101 return re.sub(r'@\w+', '@0x#', output)
107 return re
[all...]
/gem5/tests/gem5/
H A Dverifier.py32 import re
131 re.compile('^Redirecting (stdout|stderr) to'),
132 re.compile('^gem5 compiled '),
133 re.compile('^gem5 started '),
134 re.compile('^gem5 executing on '),
135 re.compile('^command line:'),
136 re.compile("^Couldn't import dot_parser,"),
137 re.compile("^info: kernel located at:"),
138 re.compile("^info: Standard input is not a terminal"),
139 re
[all...]
/gem5/ext/googletest/googletest/xcode/Scripts/
H A Dversiongenerate.py53 import re
75 version_expression = re.compile(r"AC_INIT\(.*?\[(\d+)\.(\d+)\.(\d+)\].*?\)",
76 re.DOTALL)
/gem5/ext/googletest/googletest/test/
H A Dgtest_output_test.py45 import re
102 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output)
109 return re.sub(r'Stack trace:(.|\n)*?\n\n',
117 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output)
123 return re.sub(r'\(\d+ ms', '(? ms', output)
137 return re.sub(r'unsigned int', 'unsigned', test_output)
145 test_output = re.sub('\x1b\\[(0;3\d)?m', '', test_output)
147 test_output = re.sub(r': Failure\n', r': error: ', test_output)
149 test_output = re.sub(r'((\w|\.)+)\((\d+)\):', r'\1:\3:', test_output)
157 output = re
[all...]
H A Dgtest_help_test.py43 import re
56 INCORRECT_FLAG_VARIANTS = [re.sub('^--', '-', LIST_TESTS_FLAG),
57 re.sub('^--', '/', LIST_TESTS_FLAG),
58 re.sub('_', '-', LIST_TESTS_FLAG)]
65 HELP_REGEX = re.compile(
78 re.DOTALL)
/gem5/tests/gem5/m5_util/
H A Dtest_exit.py32 import re
36 m5_exit_regex = re.compile(
/gem5/ext/ply/doc/
H A Dmakedoc.py16 import re
24 alink = re.compile(r"<a *name *= *\"(.*)\"></a>", re.IGNORECASE)
25 heading = re.compile(r"(_nn\d)", re.IGNORECASE)
62 h1 = re.compile(r".*?<H1>(<a.*a>)*[\d\.\s]*(.*?)</H1>", re.IGNORECASE)
63 h2 = re.compile(r".*?<H2>(<a.*a>)*[\d\.\s]*(.*?)</H2>", re.IGNORECASE)
64 h3 = re
[all...]
/gem5/ext/pybind11/tools/
H A Dmkdoc.py11 import re
74 name = re.sub(r'type-parameter-0-([0-9]+)', r'T\1', name)
77 name = re.sub('<.*>', '', name)
79 name = re.sub('_$', '', re.sub('_+', '_', name))
113 s = re.sub(r'\\c\s+%s' % cpp_group, r'``\1``', s)
114 s = re.sub(r'\\a\s+%s' % cpp_group, r'*\1*', s)
115 s = re.sub(r'\\e\s+%s' % cpp_group, r'*\1*', s)
116 s = re.sub(r'\\em\s+%s' % cpp_group, r'*\1*', s)
117 s = re
[all...]
/gem5/util/
H A Doprofile-top.py35 import re
40 if re.search("vmlinux-2.6", app):
70 line = re.sub("\(no symbols\)", "nosym", line)
71 line = re.sub("anonymous.*", "nosym", line)
/gem5/tests/testing/
H A Dunits.py45 import re
150 "-re",
196 re.compile('^Redirecting (stdout|stderr) to'),
197 re.compile('^gem5 compiled '),
198 re.compile('^gem5 started '),
199 re.compile('^gem5 executing on '),
200 re.compile('^command line:'),
201 re.compile("^Couldn't import dot_parser,"),
202 re.compile("^info: kernel located at:"),
203 re
[all...]

Completed in 18 milliseconds

12345