/gem5/ext/systemc/src/sysc/kernel/ |
H A D | sc_reset.h | 60 inline std::ostream& operator << ( std::ostream& os, argument 63 os << "["; 64 os << target.m_async << ","; 65 os << target.m_level << ","; 66 os << target.m_process_p << ","; 67 return os;
|
/gem5/ext/googletest/googletest/scripts/ |
H A D | release_docs.py | 66 import os 122 return [f for f in os.listdir(self.wiki_dir) 131 os.chdir(self.wiki_dir) 135 os.system(command) 140 source_file = os.path.join(self.wiki_dir, f) 141 versioned_file = os.path.join(self.wiki_dir, self.version_prefix + f)
|
/gem5/util/batch/ |
H A D | batch.py | 29 import os, popen2, re, sys 36 p2c_read, p2c_write = os.pipe() 37 self.tochild = os.fdopen(p2c_write, 'w', bufsize) 51 c2p_read, c2p_write = os.pipe() 52 self.fromchild = os.fdopen(c2p_read, 'r', bufsize) 65 self.pid = os.fork() 67 os.dup2(p2c_read, sys.stdin.fileno()) 68 os.dup2(c2p_write, sys.stdout.fileno()) 69 os.dup2(c2p_write, sys.stderr.fileno()) 71 os [all...] |
/gem5/ext/testlib/ |
H A D | sandbox.py | 31 import os 64 self.stdout_rp, self.stdout_wp = os.pipe() 65 self.stderr_rp, self.stderr_wp = os.pipe() 68 os.close(self.stdout_wp) 69 os.close(self.stderr_wp) 80 self.old_stderr = os.dup(sys.stderr.fileno()) 81 self.old_stdout = os.dup(sys.stdout.fileno()) 83 os.dup2(self.stderr_wp, sys.stderr.fileno()) 84 sys.stderr = os.fdopen(self.stderr_wp, 'w', 0) 85 os [all...] |
H A D | loader.py | 68 import os 96 filepath = os.path.basename(filepath) 105 return os.path.splitext(os.path.basename(filepath))[0] 108 return os.path.split(os.path.dirname(os.path.abspath((filepath))))[-1] 113 directory = os.path.dirname(files[0]) 115 assert os.path.dirname(f) == directory 129 >>> import os [all...] |
/gem5/src/mem/cache/ |
H A D | cache_blk.cc | 77 CacheBlkPrintWrapper::print(std::ostream &os, int verbosity, argument 80 ccprintf(os, "%sblk %c%c%c%c\n", prefix,
|
H A D | write_queue_entry.cc | 81 WriteQueueEntry::TargetList::print(std::ostream &os, int verbosity, argument 85 ccprintf(os, "%sFromCPU: ", prefix); 86 t.pkt->print(os, verbosity, ""); 169 WriteQueueEntry::print(std::ostream &os, int verbosity, argument 172 ccprintf(os, "%s[%#llx:%#llx](%s) %s %s %s state: %s %s %s %s %s\n", 178 ccprintf(os, "%s Targets:\n", prefix); 179 targets.print(os, verbosity, prefix + " ");
|
/gem5/ext/ply/test/ |
H A D | testlex.py | 257 import os 299 os.remove("lextab.py") 303 os.remove("lextab.pyc") 307 os.remove("lextab.pyo") 317 self.assert_(os.path.exists("lextab.py")) 328 self.assert_(os.path.exists("lextab.pyo")) 330 os.remove("lextab.pyo") 338 self.assert_(os.path.exists("lextab.pyo")) 340 os.remove("lextab.py") 344 os [all...] |
/gem5/util/ |
H A D | gen_arm_fs_files.py | 38 import os 45 env = os.environ.copy() 57 script_dir = os.path.dirname(os.path.abspath(sys.argv[0])) 58 gem5_dir = os.path.dirname(script_dir) 84 if not os.path.isdir(options.dest_dir): 88 if not os.path.isdir(options.gem5_dir): 98 if os.path.exists(binaries_dir): 104 if os.path.exists(revisions_dir): 132 os [all...] |
/gem5/ext/googletest/googlemock/include/gmock/ |
H A D | gmock-matchers.h | 85 explicit MatchResultListener(::std::ostream* os) : stream_(os) {} argument 126 virtual void DescribeTo(::std::ostream* os) const = 0; 134 virtual void DescribeNegationTo(::std::ostream* os) const { 135 *os << "not ("; 136 DescribeTo(os); 137 *os << ")"; 179 // virtual void DescribeTo(::std::ostream* os) const = 0; 180 // virtual void DescribeNegationTo(::std::ostream* os) const; 241 explicit StreamMatchResultListener(::std::ostream* os) argument 678 PrintIfNotEmpty(const internal::string& explanation, ::std::ostream* os) argument 743 ExplainMatchFailuresTo(const MatcherTuple& matchers, const ValueTuple& values, ::std::ostream* os) argument 810 ExplainMatchFailureTupleTo(const MatcherTuple& matchers, const ValueTuple& values, ::std::ostream* os) argument 1393 GetDesc(::std::ostream& os) argument 2135 GetCastTypeDescription(::std::ostream* os) argument 2558 ::std::ostream* const os = listener->stream(); member in class:testing::internal::ContainerEqMatcher::std [all...] |
H A D | gmock-cardinalities.h | 75 virtual void DescribeTo(::std::ostream* os) const = 0; 115 void DescribeTo(::std::ostream* os) const { impl_->DescribeTo(os); } 119 ::std::ostream* os);
|
/gem5/util/pbs/ |
H A D | pbs.py | 29 import os, popen2, re, sys 36 p2c_read, p2c_write = os.pipe() 37 self.tochild = os.fdopen(p2c_write, 'w', bufsize) 51 c2p_read, c2p_write = os.pipe() 52 self.fromchild = os.fdopen(c2p_read, 'r', bufsize) 65 self.pid = os.fork() 67 os.dup2(p2c_read, sys.stdin.fileno()) 68 os.dup2(c2p_write, sys.stdout.fileno()) 69 os.dup2(c2p_write, sys.stderr.fileno()) 71 os [all...] |
/gem5/util/statetrace/base/ |
H A D | tracechild.hh | 49 virtual std::ostream & outputStartState(std::ostream & os) = 0;
|
/gem5/src/python/ |
H A D | importer.py | 58 import os 71 override = os.environ.get('M5_OVERRIDE_PY_SOURCE', 'false').lower() 72 if override in ('true', 'yes') and os.path.exists(abspath): 76 if os.path.basename(srcfile) == '__init__.py':
|
/gem5/src/unittest/ |
H A D | genini.py | 32 import getopt, os, os.path, sys 33 from os.path import join as joinpath, realpath 55 os.environ[name] = value
|
/gem5/src/arch/x86/insts/ |
H A D | static_inst.hh | 94 void printMnemonic(std::ostream &os, const char * mnemonic) const; 95 void printMnemonic(std::ostream &os, const char * instMnemonic, 98 void printSegment(std::ostream &os, int segment) const; 100 void printReg(std::ostream &os, RegId reg, int size) const; 101 void printSrcReg(std::ostream &os, int reg, int size) const; 102 void printDestReg(std::ostream &os, int reg, int size) const; 103 void printMem(std::ostream &os, uint8_t segment,
|
/gem5/configs/example/ |
H A D | ruby_random_test.py | 38 import os, optparse, sys 46 config_path = os.path.dirname(os.path.abspath(__file__)) 47 config_root = os.path.dirname(config_path) 48 m5_root = os.path.dirname(config_root) 64 open(os.path.join(config_root, "common", "Options.py")).read(), \ 65 os.path.join(config_root, "common", "Options.py"), 'exec'))
|
/gem5/src/systemc/ext/dt/fx/ |
H A D | sc_fxdefs.hh | 79 operator << (::std::ostream &os, sc_enc enc) argument 81 return os << to_string(enc); 105 operator << (::std::ostream &os, sc_q_mode q_mode) argument 107 return os << to_string(q_mode); 131 operator << (::std::ostream &os, sc_o_mode o_mode) argument 133 return os << to_string(o_mode); 152 operator << (::std::ostream &os, sc_switch sw) argument 154 return os << to_string(sw); 173 operator << (::std::ostream &os, sc_fmt fmt) argument 175 return os << to_strin [all...] |
/gem5/ext/googletest/googletest/test/ |
H A D | gtest_xml_output_unittest.py | 38 import os 206 output_file = os.path.join(gtest_test_utils.GetTempDir(), 211 os.remove(output_file) 222 self.assert_(os.path.isfile(output_file)) 230 xml_path = os.path.join(gtest_test_utils.GetTempDir(), 232 if os.path.isfile(xml_path): 233 os.remove(xml_path) 251 self.assert_(not os.path.isfile(xml_path)) 268 xml_path = os.path.join(gtest_test_utils.GetTempDir(), 307 os [all...] |
H A D | gtest_color_test.py | 36 import os 40 IS_WINDOWS = os.name = 'nt' 51 os.environ[env_var] = value 52 elif env_var in os.environ: 53 del os.environ[env_var]
|
/gem5/src/arch/sparc/insts/ |
H A D | static_inst.hh | 96 static void printMnemonic(std::ostream &os, const char *mnemonic); 97 static void printReg(std::ostream &os, RegId reg); 99 void printSrcReg(std::ostream &os, int reg) const; 100 void printDestReg(std::ostream &os, int reg) const; 102 void printRegArray(std::ostream &os,
|
/gem5/tests/test-progs/asmtest/src/riscv/ |
H A D | run-tests.py | 38 import os 79 test_dir = os.path.abspath('../../bin/riscv/') 85 gem5_dir = os.path.abspath('../../../../../') 86 gem5_bin = os.path.join(gem5_dir, 'build', 'RISCV', 'gem5.opt') 87 config = os.path.join(gem5_dir, 'configs', 'example', 'se.py')
|
/gem5/src/systemc/tests/ |
H A D | verify.py | 40 import os 45 script_path = os.path.abspath(inspect.getfile(inspect.currentframe())) 46 script_dir = os.path.dirname(script_path) 47 config_path = os.path.join(script_dir, 'config.py') 49 systemc_dir = os.path.dirname(script_dir) 50 src_dir = os.path.dirname(systemc_dir) 51 checkout_dir = os.path.dirname(src_dir) 54 tests_rel_path = os.path.join(systemc_rel_path, 'tests') 55 json_rel_path = os.path.join(tests_rel_path, 'tests.json') 80 return os [all...] |
/gem5/ext/googletest/googlemock/scripts/ |
H A D | fuse_gmock_files.py | 64 import os 71 DEFAULT_GMOCK_ROOT_DIR = os.path.join(os.path.dirname(__file__), '..') 74 sys.path.append(os.path.join(DEFAULT_GMOCK_ROOT_DIR, '../googletest/scripts')) 94 return os.path.join(gmock_root, '../googletest') 122 output_file = file(os.path.join(output_dir, GMOCK_H_OUTPUT), 'w') 135 for line in file(os.path.join(gmock_root, gmock_header_path), 'r'): 174 for line in file(os.path.join(gmock_root, gmock_source_file), 'r'): 207 output_file = file(os.path.join(output_dir, GMOCK_GTEST_ALL_CC_OUTPUT), 'w')
|
/gem5/ext/googletest/googlemock/src/ |
H A D | gmock-matchers.cc | 315 ::std::ostream& os = *stream; local 316 os << "{"; 319 os << sep << "\n (" 324 os << "\n}"; 396 ::std::ostream* os) const { 398 *os << "is empty"; 402 *os << "has " << Elements(1) << " and that element "; 403 matcher_describers_[0]->DescribeTo(os); 406 *os << "has " << Elements(matcher_describers_.size()) 410 *os << se [all...] |