Searched refs:os (Results 126 - 150 of 356) sorted by relevance

1234567891011>>

/gem5/src/python/m5/
H A Dmain.py45 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 Dbitunion.hh425 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 Drepo.py41 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 Dgtest_output_test.py44 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 Dgtest_filter_unittest.py45 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 Druby_gpu_random_test.py41 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 Druby_mem_test.py38 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__.py44 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 Dcompile30 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 Dgem5img.py8 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 Dregress31 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 Dtest_numpy_dtypes.cpp28 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 Dsend.py30 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 Dmem64.cc64 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 Dmisc.cc76 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 Dsc_length_param.h192 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__.py41 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 Dbenchmark.py2 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 Dmodule.hh64 std::ostringstream os; local
65 os << seed << "_" << counts[seed]++;
66 buf = os.str();
/gem5/ext/googletest/googlemock/test/
H A Dgmock_output_test.py43 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 Dsimple.py94 thispath = os.path.dirname(os.path.realpath(__file__))
95 binary = os.path.join(thispath, '../../../',
/gem5/configs/learning_gem5/part2/
H A Dsimple_cache.py92 thispath = os.path.dirname(os.path.realpath(__file__))
93 binpath = os.path.join(thispath, '../../../',
H A Dsimple_memobj.py90 thispath = os.path.dirname(os.path.realpath(__file__))
91 binpath = os.path.join(thispath, '../../../',
/gem5/src/mem/slicc/
H A Dmain.py30 import os
93 protocol_base = os.path.join(os.path.dirname(__file__),
/gem5/ext/testlib/
H A Duid.py29 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)

Completed in 28 milliseconds

1234567891011>>