Searched refs:re (Results 51 - 75 of 107) sorted by relevance

12345

/gem5/ext/googletest/googletest/test/
H A Dgtest_xml_output_unittest.py39 import re
186 match = re.match(r'(\d+)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)', date_time_str)
188 re.match,
H A Dgtest_filter_unittest.py46 import re
106 PARAM_TEST_REGEX = re.compile(r'/ParamTest')
109 TEST_CASE_REGEX = re.compile(r'^\[\-+\] \d+ tests? from (\w+(/\w+)?)')
112 TEST_REGEX = re.compile(r'^\[\s*RUN\s*\].*\.(\w+(/\w+)?)')
/gem5/util/minorview/
H A Dmodel.py42 import re
104 m = re.match('^(F;)?(\d+)/(\d+)\.(\d+)/(\d+)(/(\d+)(\.(\d+))?)?',
188 m = re.match('^(\w+);(\d+)\.(\d+);([0-9a-fA-Fx]+);(.*)$', string)
215 self.counts = map(int, re.split('/', string))
236 self.direc, id = re.match('^([RW]);([^;]*);.*$', string).groups()
686 disassembly = re.sub(' *', ' ',
687 re.sub('^ *', '', pairs['inst']))
770 match = re.match('^\s*(\d+):', l)
780 match_line_re = re.compile(
792 unit = re
[all...]
/gem5/util/streamline/
H A Dm5stats2streamline.py62 import re, sys, os
114 if not re.match("(.*)\.apc", args.output_path):
593 process_re = re.compile("tick=(\d+)\s+(\d+)\s+cpu_id=(\d+)\s+" +
599 match = re.match(process_re, line)
729 self.short_name = re.sub("system\.", "", name)
730 self.short_name = re.sub(":", "_", name)
734 self.regex = re.compile("^" + name + "\s+([\d\.e\-]+)\s+# (.*)$", re.M)
764 per_cpu_name = re.sub("#", str(i), self.name)
766 per_cpu_name = re
[all...]
/gem5/ext/pybind11/tests/
H A Dconftest.py10 import re
16 _unicode_marker = re.compile(r'u(\'[^\']*\')')
17 _long_marker = re.compile(r'([0-9])L')
18 _hexadecimal = re.compile(r'0x[0-9a-fA-F]+')
H A Dtest_class.py125 import re
129 assert re.match('generic_type: type ".*MismatchDerived1" does not have a non-default '
134 assert re.match('generic_type: type ".*MismatchDerived2" has a non-default holder type '
H A Dtest_factory_constructors.py2 import re
291 found = re.search(r'^operator new called, returning (\d+)\n$', str(capture))
302 found = re.search(r'^operator new called, returning (\d+)\n$', str(capture))
330 return re.sub(r'\s+#.*', '', s)
/gem5/ext/libfdt/
H A Dfdt_rw.c153 struct fdt_reserve_entry *re; local
158 re = _fdt_mem_rsv_w(fdt, fdt_num_mem_rsv(fdt));
159 err = _fdt_splice_mem_rsv(fdt, re, 0, 1);
163 re->address = cpu_to_fdt64(address);
164 re->size = cpu_to_fdt64(size);
170 struct fdt_reserve_entry *re = _fdt_mem_rsv_w(fdt, n); local
178 err = _fdt_splice_mem_rsv(fdt, re, 1, 0);
/gem5/ext/googletest/googlemock/scripts/
H A Dgmock_doctor.py36 import re
140 r = re.compile(regex)
160 if re.search(regex, msg):
245 to re-arrange the order of actions in a DoAll(), if you are using one?"""
580 msg = re.sub(r'\x1b\[[^m]*m', '', msg) # Strips all color formatting.
583 msg = re.sub(r'(\xe2\x80\x98|\xe2\x80\x99)', "'", msg)
H A Dfuse_gmock_files.py65 import re
79 INCLUDE_GMOCK_FILE_REGEX = re.compile(r'^\s*#\s*include\s*"(gmock/.+)"')
/gem5/ext/ply/ply/
H A Dlex.py37 import re, sys, types, copy, os
58 _is_identifier = re.compile(r'^[a-zA-Z0-9_]+$')
117 # tuples (re,findex) where re is a compiled
129 self.lexreflags = 0 # Optional re compile flags
239 titem.append((re.compile(lre[i][0],lextab._lexreflags),_names_to_funcs(lre[i][1],fdict)))
478 # form the master regular expression. Given limitations in the Python re
486 lexre = re.compile(regex,re.VERBOSE | reflags)
756 c = re
[all...]
/gem5/ext/mcpat/regression/
H A Dregression.py50 import re
70 if re.match("power_region.*\.xml$", testfile):
/gem5/src/python/m5/util/
H A D__init__.py45 import re
128 return map(lambda x: int(re.match('\d+', x).group()), v.split('.'))
/gem5/tests/
H A Drun.py45 import re
150 # Since we're in batch mode, dont allow tcp socket connections
210 if re.search('-ruby', test_filename):
/gem5/util/maint/
H A Dlist_changes.py42 import re
46 _re_tag = re.compile(r"^((?:\w|-)+): (.*)$")
/gem5/util/stats/
H A Doutput.py69 import os, re, urllib
202 psname = '%s.eps' % re.sub(':', '-', basename)
203 epsname = '%s.ps' % re.sub(':', '-', basename)
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dgmock_class.py33 import re
114 args_strings = re.sub(r'//.*', '', source[start:end])
119 args = re.sub(' +', ' ', args_strings.replace('\n', ' '))
/gem5/ext/googletest/googletest/src/
H A Dgtest-port.cc576 // Returns true iff regular expression re matches the entire str.
577 bool RE::FullMatch(const char* str, const RE& re) { argument
578 if (!re.is_valid_) return false;
581 return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
584 // Returns true iff regular expression re matches a substring of str
586 bool RE::PartialMatch(const char* str, const RE& re) { argument
587 if (!re.is_valid_) return false;
590 return regexec(&re.partial_regex_, str, 1, &match, 0) == 0;
829 // Returns true iff regular expression re matches the entire str.
830 bool RE::FullMatch(const char* str, const RE& re) { argument
836 PartialMatch(const char* str, const RE& re) argument
[all...]
/gem5/src/arch/
H A Disa_parser.py45 import re
64 return re.sub(r'(?m)^(?!#)', ' ', s)
85 s = re.sub(r'(?m)^\s*\n', '', s);
86 if (s != '' and re.match(r'[ \t]', s[0])):
112 labelRE = re.compile(r'(?<!%)%\(([^\)]+)\)[sd]')
127 # Start with the template namespace. Make a copy since we're
132 # If we're dealing with an InstObjParams object, we need
193 # Compose the op_wb string. If we're going to write back the
339 bitOp1ArgRE = re.compile(r'<\s*(\w+)\s*:\s*>')
341 bitOpWordRE = re
[all...]
/gem5/util/style/
H A Dverifiers.py51 import re
300 _lead = re.compile(r'^([ \t]+)')
301 _trail = re.compile(r'([ \t]+)$')
404 _any_control = re.compile(r'\b(if|while|for)([ \t]*)\(')
448 regex = re.compile(r'\s*==\s*([Tt]rue|[Ff]alse)\b')
/gem5/src/systemc/tests/systemc/misc/unit/data/user_guide/ch9/std_ulogic_vector_datatype/
H A Dstd_ulogic_vector_datatype.cpp423 std_ulogic_vector<4> re; local
441 re = "1111";
442 re.range(2,2) = std_ulogic_vector<1>( rdata4[1] );
469 << re[0] << "\t" << re[1] << "\t" << re[2] << "\t" << re[3]
/gem5/src/systemc/tests/
H A Dverify.py41 import re
246 return re.compile(filts, flags=re.MULTILINE)
275 re.sub(filt, '', data)
279 test = re.sub(self.test_filt, '', test_f.read())
280 ref = re.sub(self.ref_filt, '', ref_f.read())
/gem5/util/
H A Dcompile30 import os, re, sys
45 local = re.compile(r'^scons-local-([0-9]*)\.([0-9]*)\.([0-9]*)$')
46 standard = re.compile(r'^scons-([0-9]*)\.([0-9]*)\.([0-9]*)$')
H A Dqdo42 import re
96 prompt_re = re.compile('qdo\$ ')
/gem5/util/batch/
H A Dbatch.py29 import os, popen2, re, sys
110 self.jobid = re.compile('IdJob = (\S+)')

Completed in 56 milliseconds

12345