/gem5/src/python/m5/ |
H A D | main.py | 45 import os 244 if not os.path.isdir(options.outdir): 245 os.makedirs(options.outdir) 248 stdout_file = os.path.join(options.outdir, options.stdout_file) 249 stderr_file = os.path.join(options.outdir, options.stderr_file) 262 redir_fd = os.open(stdout_file, os. O_WRONLY | os.O_CREAT | os.O_TRUNC) 263 os [all...] |
/gem5/src/base/ |
H A D | bitunion.hh | 425 bitfieldBackendPrinter(std::ostream &os, const T &t) argument 427 os << t; 428 return os; 436 bitfieldBackendPrinter(std::ostream &os, const char &t) argument 438 os << (int)t; 439 return os; 444 bitfieldBackendPrinter(std::ostream &os, const unsigned char &t) argument 446 os << (unsigned int)t; 447 return os; 455 operator << (std::ostream &os, cons argument [all...] |
/gem5/util/style/ |
H A D | repo.py | 41 import os 55 return os.path.join(self.repo_base(), fname) 64 fname = os.path.abspath(fname) 65 repo_path = os.path.abspath(self.repo_base()) 67 return os.path.commonprefix([repo_path, fname]) == repo_path 75 return os.path.relpath(fname, self.repo_base()) 265 if os.path.exists(os.path.join(path, repo_dir)): 271 parent_dir = os.path.abspath(os [all...] |
/gem5/ext/googletest/googletest/test/ |
H A D | gtest_output_test.py | 44 import os 54 IS_WINDOWS = os.name == 'nt' 80 GOLDEN_PATH = os.path.join(gtest_test_utils.GetSourceDir(), GOLDEN_NAME) 215 environ = os.environ.copy() 310 if os.getenv('DEBUG_GTEST_OUTPUT_TEST'): 311 open(os.path.join( 315 open(os.path.join(
|
H A D | gtest_filter_unittest.py | 45 import os 60 # os.environ. We then use 'eval' to parse the child's output so that an 62 os.environ['EMPTY_VAR'] = '' 64 [sys.executable, '-c', 'import os; print(\'EMPTY_VAR\' in os.environ)']) 71 # is NO LONGER in os.environ. 74 os.environ['UNSET_VAR'] = 'X' 75 del os.environ['UNSET_VAR'] 77 [sys.executable, '-c', 'import os; print(\'UNSET_VAR\' not in os [all...] |
/gem5/configs/example/ |
H A D | ruby_gpu_random_test.py | 41 import os, optparse, sys 49 config_path = os.path.dirname(os.path.abspath(__file__)) 50 config_root = os.path.dirname(config_path) 51 m5_root = os.path.dirname(config_root) 81 open(os.path.join(config_root, "common", "Options.py")).read(), \ 82 os.path.join(config_root, "common", "Options.py"), 'exec'))
|
H A D | ruby_mem_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) 70 open(os.path.join(config_root, "common", "Options.py")).read(), \ 71 os.path.join(config_root, "common", "Options.py"), 'exec'))
|
/gem5/src/python/m5/util/ |
H A D | __init__.py | 44 import os 97 if not os.path.isabs(path) and sys.path[0]: 98 path = os.path.join(sys.path[0], path) 99 path = os.path.realpath(path) 206 if os.path.exists(path): 207 if not os.path.isdir(path): 210 os.mkdir(path)
|
/gem5/util/ |
H A D | compile | 30 import os, re, sys 31 from os.path import isdir, isfile, join as joinpath 33 homedir = os.environ['HOME'] 42 if os.environ.has_key("SCONS_LIB_DIR"): 43 search_dirs.append(os.environ["SCONS_LIB_DIR"]) 53 entries = os.listdir(dir) 296 os.mkdir(build_dir) 299 os.symlink(m5_dir, joinpath(build_dir, 'm5')) 300 os.symlink(ext_dir, joinpath(build_dir, 'ext')) 301 os [all...] |
H A D | gem5img.py | 8 import os 9 from os import environ as env 54 needSudo.notRoot = (os.geteuid() != 0) 158 if os.path.samefile(chunks[2], mountPoint): 219 if not os.path.isdir(mountPoint): 238 if not os.path.isdir(mountPoint): 268 fd = os.open(file, os.O_WRONLY | os.O_CREAT) 269 os [all...] |
H A D | regress | 31 import os 36 progname = os.path.basename(sys.argv[0]) 95 options.build_dir = os.path.join(options.build_dir, 'build') 97 # Call os.system() and raise exception if return status is non-zero 141 return int(os.popen('sysctl -n hw.ncpu').read()) 146 return os.sysconf('SC_NPROCESSORS_ONLN')
|
/gem5/ext/pybind11/tests/ |
H A D | test_numpy_dtypes.cpp | 28 std::ostream& operator<<(std::ostream& os, const SimpleStruct& v) { argument 29 return os << "s:" << v.bool_ << "," << v.uint_ << "," << v.float_ << "," << v.ldbl_; 46 std::ostream& operator<<(std::ostream& os, const PackedStruct& v) { argument 47 return os << "p:" << v.bool_ << "," << v.uint_ << "," << v.float_ << "," << v.ldbl_; 55 std::ostream& operator<<(std::ostream& os, const NestedStruct& v) { argument 56 return os << "n:a=" << v.a << ";b=" << v.b; 85 std::ostream& operator<<(std::ostream& os, const ComplexStruct& v) { argument 86 return os << "c:" << v.cflt << "," << v.cdbl; 109 std::ostream& operator<<(std::ostream& os, const StringStruct& v) { argument 110 os << " 117 operator <<(std::ostream& os, const ArrayStruct& v) argument 138 operator <<(std::ostream& os, const EnumStruct& v) argument [all...] |
/gem5/util/batch/ |
H A D | send.py | 30 import os, os.path, re, socket, sys 31 from os import environ as env, listdir 32 from os.path import basename, isdir, isfile, islink, join as joinpath, normpath 49 for root, dirs, files in os.walk(srcdir): 51 prefix = os.path.commonprefix([root, srcdir]) 61 os.mkdir(newdir) 163 os.mkdir(conf.basedir) 265 os.chdir(str(jobdir)) 266 os [all...] |
/gem5/src/arch/arm/insts/ |
H A D | mem64.cc | 64 Memory64::startDisassembly(std::ostream &os) const 66 printMnemonic(os, "", false); 68 printPFflags(os, dest); 70 printIntReg(os, dest); 72 ccprintf(os, ", ["); 73 printIntReg(os, base);
|
H A D | misc.cc | 76 MsrBase::printMsrBase(std::ostream &os) const 78 printMnemonic(os); 87 os << "cpsr_"; 93 os << "spsr_"; 95 os << "apsr_"; 103 os << "????"; 108 os << "nzcvq"; 110 os << "f"; 115 os << "g"; 117 os << " [all...] |
/gem5/ext/systemc/src/sysc/datatypes/int/ |
H A D | sc_length_param.h | 192 operator << ( ::std::ostream& os, const sc_length_param& a ) argument 194 a.print( os ); 195 return os;
|
/gem5/site_scons/gem5_scons/ |
H A D | __init__.py | 41 import os 50 variant_base = env['BUILDROOT'] + os.path.sep 87 # surprisingly, os.path.commonprefix is a dumb char-by-char string 89 com_pfx = os.path.commonprefix(srcs + tgts)
|
/gem5/ext/pybind11/docs/ |
H A D | benchmark.py | 2 import os 81 os.system("g++ -Os -shared -rdynamic -undefined dynamic_lookup " 86 size = os.stat('test.so').st_size
|
/gem5/src/systemc/core/ |
H A D | module.hh | 64 std::ostringstream os; local 65 os << seed << "_" << counts[seed]++; 66 buf = os.str();
|
/gem5/ext/googletest/googlemock/test/ |
H A D | gmock_output_test.py | 43 import os 56 GOLDEN_PATH = os.path.join(gmock_test_utils.GetSourceDir(), GOLDEN_NAME) 152 os.environ['GTEST_CATCH_EXCEPTIONS'] = '1'
|
/gem5/configs/learning_gem5/part1/ |
H A D | simple.py | 94 thispath = os.path.dirname(os.path.realpath(__file__)) 95 binary = os.path.join(thispath, '../../../',
|
/gem5/configs/learning_gem5/part2/ |
H A D | simple_cache.py | 92 thispath = os.path.dirname(os.path.realpath(__file__)) 93 binpath = os.path.join(thispath, '../../../',
|
H A D | simple_memobj.py | 90 thispath = os.path.dirname(os.path.realpath(__file__)) 91 binpath = os.path.join(thispath, '../../../',
|
/gem5/src/mem/slicc/ |
H A D | main.py | 30 import os 93 protocol_base = os.path.join(os.path.dirname(__file__),
|
/gem5/ext/testlib/ |
H A D | uid.py | 29 import os 44 return os.path.relpath(path, 45 os.path.commonprefix((config.constants.testing_base, 50 return os.path.join(config.constants.testing_base, short_path)
|