/gem5/ext/googletest/googletest/test/ |
H A D | gtest_filter_unittest.py | 233 def AssertSetEqual(self, lhs, rhs): 237 self.assert_(elem in rhs, '%s in %s' % (elem, rhs)) 240 self.assert_(elem in lhs, '%s in %s' % (elem, lhs)) 242 def AssertPartitionIsValid(self, set_var, list_of_sets): 248 self.assertEqual(len(set_var), len(full_partition)) 249 self.assertEqual(set(set_var), set(full_partition)) 251 def AdjustForParameterizedTests(self, tests_to_run): 260 def RunAndVerify(self, gtest_filter, tests_to_run): 263 tests_to_run = self.AdjustForParameterizedTests(tests_to_run) 277 self [all...] |
H A D | gtest_xml_outfiles_test.py | 67 def setUp(self): 71 self.output_dir_ = os.path.join(gtest_test_utils.GetTempDir(), 73 self.DeleteFilesAndDir() 75 def tearDown(self): 76 self.DeleteFilesAndDir() 78 def DeleteFilesAndDir(self): 80 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_1_TEST + ".xml")) 84 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_2_TEST + ".xml")) 88 os.rmdir(self.output_dir_) 92 def testOutfile1(self) [all...] |
/gem5/configs/ruby/ |
H A D | AMD_Base_Constructor.py | 52 def create(self, size, assoc, options): 53 self.size = MemorySize(size) 54 self.assoc = assoc 55 self.replacement_policy = PseudoLRUReplacementPolicy() 63 def create(self, size, assoc, options): 64 self.size = MemorySize(size) 65 self.assoc = assoc 66 self.replacement_policy = PseudoLRUReplacementPolicy() 69 def create(self, options, ruby_system, system): 70 self [all...] |
/gem5/ext/testlib/ |
H A D | runner.py | 68 def __init__(self, test, suite): 69 self.test = test 70 self.suite = suite 71 self.log = log.TestLogWrapper(log.test_log, test, suite) 74 def _fixtures(self): 75 fixtures = {fixture.name:fixture for fixture in self.suite.fixtures} 76 for fixture in self.test.fixtures: 81 def fixtures(self): 82 return self._fixtures() 86 def __init__(self, loaded_testabl [all...] |
H A D | suite.py | 59 def __init__(self, name=None, fixtures=tuple(), tests=tuple(), 61 self.fixtures = self.fixtures + list(fixtures) 62 self.tags = self.tags | set(tags) 63 self.tests = self.tests + list(tests) 65 name = self.__class__.__name__ 66 self.name = name 68 def __iter__(self) [all...] |
/gem5/ext/googletest/googlemock/scripts/generator/cpp/ |
H A D | ast.py | 104 __contains__ = lambda self: False 105 keys = values = items = iterkeys = itervalues = iteritems = lambda self: () 112 def __init__(self, start, end): 113 self.start = start 114 self.end = end 116 def IsDeclaration(self): 120 def IsDefinition(self): 124 def IsExportable(self): 128 def Requires(self, node): 132 def XXX__str__(self) [all...] |
/gem5/src/python/m5/util/ |
H A D | code_formatter.py | 40 def __init__(self, formatter, frame, *args, **kwargs): 41 self.frame = frame 42 self.formatter = formatter 43 self.dict = self.formatter._dict 44 self.args = args 45 self.kwargs = kwargs 46 self.locals = {} 48 def __setitem__(self, item, val): 49 self [all...] |
H A D | grammar.py | 34 def __init__(self, message, token=None): 35 Exception.__init__(self, message) 36 self.token = token 39 def setupLexerFactory(self, **kwargs): 42 self.lex_kwargs = kwargs 44 def setupParserFactory(self, **kwargs): 55 self.yacc_kwargs = kwargs 57 def __getattr__(self, attr): 59 self.lexers = [] 60 return self [all...] |
H A D | jobfile.py | 35 def __init__(self, name, desc, **kwargs): 36 self.name = name 37 self.desc = desc 38 self.__dict__.update(kwargs) 40 def update(self, obj): 48 if key not in self.__dict__: 49 self.__dict__[key] = val 53 if self.__dict__[key] == val: 58 (key, self.__dict__[key], val)) 60 d = self [all...] |
H A D | attrdict.py | 35 def __getattr__(self, attr): 36 if attr in self: 37 return self.__getitem__(attr) 38 return super(attrdict, self).__getattribute__(attr) 40 def __setattr__(self, attr, value): 41 if attr in dir(self) or attr.startswith('_'): 42 return super(attrdict, self).__setattr__(attr, value) 43 return self.__setitem__(attr, value) 45 def __delattr__(self, attr): 46 if attr in self [all...] |
/gem5/src/cpu/ |
H A D | TimingExpr.py | 60 def set_params(self, value): 61 self.value = value 62 return self 76 def set_params(self, index): 77 self.index = index 78 return self 87 def set_params(self, reg): 88 self.reg = reg 89 return self 99 def set_params(self, defn [all...] |
/gem5/tests/testing/ |
H A D | helpers.py | 50 def __init__(self, status, stdout, stderr): 51 self.status = status 52 self.stdout = stdout 53 self.stderr = stderr 65 def __init__(self, *args, **kwargs): 66 super(ProcessHelper, self).__init__(*args, **kwargs) 68 def _terminate_nicely(self, timeout=5): 70 self.kill() 72 if self.returncode is not None: 73 return self [all...] |
/gem5/configs/learning_gem5/part1/ |
H A D | caches.py | 61 def __init__(self, options=None): 62 super(L1Cache, self).__init__() 65 def connectBus(self, bus): 67 self.mem_side = bus.slave 69 def connectCPU(self, cpu): 83 def __init__(self, opts=None): 84 super(L1ICache, self).__init__(opts) 87 self.size = opts.l1i_size 89 def connectCPU(self, cpu): 91 self [all...] |
/gem5/util/stats/ |
H A D | db.py | 47 def __init__(self, row): 48 self.run = int(row[0]) 49 self.name = row[1] 50 self.user = row[2] 51 self.project = row[3] 54 def __init__(self, row): 55 self.stat = int(row[0]) 56 self.x = int(row[1]) 57 self.y = int(row[2]) 58 self [all...] |
/gem5/src/mem/slicc/ast/ |
H A D | FuncCallExprAST.py | 33 def __init__(self, slicc, proc_name, exprs): 34 super(FuncCallExprAST, self).__init__(slicc) 35 self.proc_name = proc_name 36 self.exprs = exprs 38 def __repr__(self): 39 return "[FuncCallExpr: %s %s]" % (self.proc_name, self.exprs) 41 def generate(self, code): 42 machine = self.state_machine 44 if self [all...] |
H A D | DeclAST.py | 31 def __init__(self, slicc, pairs = None): 32 super(DeclAST, self).__init__(slicc, pairs) 34 def files(self, parent=None): 37 def findMachines(self):
|
H A D | CheckNextCycleAST.py | 32 def __init__(self, slicc): 33 super(CheckNextCycleAST, self).__init__(slicc) 35 def __repr__(self): 38 def generate(self, code, return_type):
|
/gem5/ext/ply/ply/ |
H A D | lex.py | 64 def __init__(self,message,s): 65 self.args = (message,) 66 self.text = s 70 def __str__(self): 71 return "LexToken(%s,%r,%d,%d)" % (self.type,self.value,self.lineno,self.lexpos) 72 def __repr__(self): 73 return str(self) [all...] |
/gem5/src/python/m5/ |
H A D | options.py | 40 def __init__(self, split): 41 self.split = split 42 def __call__(self, option, opt_str, value, parser): 43 values = value.split(self.split) 51 def __init__(self, *args, **kwargs): 53 self._optparse = optparse.OptionParser(*args, **kwargs) 54 self._optparse.disable_interspersed_args() 56 self._allopts = {} 59 self._group = self [all...] |
H A D | proxy.py | 58 def __init__(self, search_self, search_up): 59 self._search_self = search_self 60 self._search_up = search_up 61 self._multipliers = [] 63 def __str__(self): 64 if self._search_self and not self._search_up: 66 elif not self._search_self and self._search_up: 70 return s + '.' + self [all...] |
H A D | params.py | 119 def ini_str(self): 120 return str(self) 125 def config_value(self): 126 return str(self) 142 def unproxy(self, base): 143 return self 146 def pretty_print(self, value): 151 def __init__(self, ptype_str, ptype, *args, **kwargs): 152 self.ptype_str = ptype_str 155 self [all...] |
/gem5/tests/configs/ |
H A D | arm_generic.py | 58 def __init__(self, **kwargs): 59 BaseSESystem.__init__(self, **kwargs) 61 def create_caches_private(self, cpu): 63 if self.mem_mode == "timing": 76 def __init__(self, machine_type, **kwargs): 83 self.machine_type = machine_type 84 self.num_cpus = kwargs.get('num_cpus', 1) 85 self.mem_size = kwargs.get('mem_size', '256MB') 86 self.use_ruby = kwargs.get('use_ruby', False) 88 def create_system(self) [all...] |
H A D | x86_generic.py | 55 def __init__(self): 58 def create_system(self): 60 system = FSConfig.makeLinuxX86System(self.mem_mode, 61 numCPUs=self.num_cpus, 65 self.init_system(system) 72 def __init__(self, **kwargs): 81 BaseSystem.__init__(self, **kwargs) 82 LinuxX86SystemBuilder.__init__(self) 84 def create_caches_private(self, cpu): 99 def __init__(self, **kwarg [all...] |
/gem5/util/minorview/ |
H A D | model.py | 54 def __init__(self): 56 self.ids = set(all_ids) 58 def __and__(self, rhs): 61 ret.ids = self.ids.intersection(rhs.ids) 66 def to_striped_block(self, select): 70 def get_inst(self): 74 def get_line(self): 78 def __repr__(self): 79 return self.__class__.__name__ + '().from_string(' + \ 80 self [all...] |
/gem5/configs/common/ |
H A D | FSConfig.py | 67 def childImage(self, ci): 68 self.image.child.image_file = ci 88 self = LinuxAlphaSystem() 92 self.readfile = mdesc.script() 94 self.tsunami = BaseTsunami() 97 self.iobus = IOXBar() 98 self.tsunami.attachIO(self.iobus) 100 self.tsunami.ide.pio = self [all...] |