Searched refs:os (Results 26 - 50 of 356) sorted by relevance

1234567891011>>

/gem5/tests/
H A Dmain.py11 import os
13 base_dir = os.path.dirname(os.path.abspath(__file__))
14 ext_path = os.path.join(base_dir, os.pardir, 'ext')
H A Drun.py43 import os
48 from os.path import join as joinpath
49 import os.path
50 import os
101 def require_file(path, fatal=False, mode=os.F_OK):
111 Python documentation for os.access().
114 if os.access(path, mode):
118 if not os.path.exists(path):
138 require_file(kvm_dev, fatal=fatal, mode=os.R_OK | os
[all...]
/gem5/ext/systemc/src/sysc/datatypes/fx/
H A Dsc_fxtype_params.cpp87 sc_fxtype_params::print( ::std::ostream& os ) const
89 os << to_string();
93 sc_fxtype_params::dump( ::std::ostream& os ) const
95 os << "sc_fxtype_params" << ::std::endl;
96 os << "(" << ::std::endl;
97 os << "wl = " << m_wl << ::std::endl;
98 os << "iwl = " << m_iwl << ::std::endl;
99 os << "q_mode = " << m_q_mode << ::std::endl;
100 os << "o_mode = " << m_o_mode << ::std::endl;
101 os << "n_bit
[all...]
H A Dscfx_params.h205 scfx_params::dump( ::std::ostream& os ) const
207 os << "scfx_params" << ::std::endl;
208 os << "(" << ::std::endl;
209 os << "type_params = ";
210 m_type_params.dump( os );
211 os << "enc = " << m_enc << ::std::endl;
212 os << "cast_switch = ";
213 m_cast_switch.dump( os );
214 os << ")" << ::std::endl;
/gem5/configs/common/
H A DSysPaths.py33 import os, sys
35 config_path = os.path.dirname(os.path.abspath(__file__))
36 config_root = os.path.dirname(config_path)
44 self._subdir = os.path.join(*subdirs)
51 paths = os.environ['M5_PATH'].split(':')
56 paths = map(os.path.expanduser, paths)
59 paths = filter(os.path.isdir, paths)
66 filepath = os.path.join(self._subdir, filename)
67 paths = (os
[all...]
/gem5/src/cpu/minor/
H A Dpipe_data.cc46 operator <<(std::ostream &os, BranchData::Reason reason) argument
51 os << "NoBranch";
54 os << "UnpredictedBranch";
57 os << "BranchPrediction";
60 os << "CorrectlyPredictedBranch";
63 os << "BadlyPredictedBranch";
66 os << "BadlyPredictedBranchTarget";
69 os << "Interrupt";
72 os << "SuspendThread";
75 os << "HaltFetc
153 operator <<(std::ostream &os, const BranchData &branch) argument
[all...]
H A Ddyn_inst.cc63 operator <<(std::ostream &os, const InstId &id) argument
65 os << id.threadId << '/' << id.streamSeqNum << '.'
70 os << '/' << id.fetchSeqNum;
72 os << '.' << id.execSeqNum;
75 return os;
105 MinorDynInst::reportData(std::ostream &os) const
108 os << "-";
110 os << "F;" << id;
112 os << "TF;" << id;
114 os << i
118 operator <<(std::ostream &os, const MinorDynInst &inst) argument
140 printRegName(std::ostream &os, const RegId& reg) argument
[all...]
/gem5/ext/googletest/googletest/test/
H A Dgtest_test_utils.py37 import os
56 IS_WINDOWS = os.name == 'nt'
57 IS_CYGWIN = os.name == 'posix' and 'CYGWIN' in os.uname()[0]
62 environ = os.environ.copy()
81 _flag_map = {'source_dir': os.path.dirname(sys.argv[0]),
82 'build_dir': os.path.dirname(sys.argv[0])}
98 if flag.upper() in os.environ:
99 _flag_map[flag] = os.environ[flag.upper()]
129 return os
[all...]
/gem5/tests/gem5/fs/linux/arm/
H A Drun.py45 import os
46 import os.path
47 from os.path import join as joinpath
62 os.environ['M5_PATH'] = os.path.dirname(__file__)
65 gem5_root = joinpath(os.path.dirname(__file__), '..', '..', '..', '..', '..')
73 system.readfile = os.path.join(tests_root, 'halt.sh')
/gem5/src/arch/sparc/insts/
H A Dinteger.cc44 IntOp::printPseudoOps(std::ostream &os, Addr pc, argument
48 printMnemonic(os, "mov");
49 printSrcReg(os, 1);
50 ccprintf(os, ", ");
51 printDestReg(os, 0);
58 IntOpImm::printPseudoOps(std::ostream &os, Addr pc, argument
64 printMnemonic(os, "clr");
66 printMnemonic(os, "mov");
67 ccprintf(os, " %#x, ", imm);
69 printDestReg(os,
[all...]
/gem5/ext/mcpat/regression/
H A Dregression.py47 import os
66 testfiles = os.listdir(testdir)
74 regression_test = os.path.join(testdir, testfile)
75 regression_output = os.path.join(
77 regression_correct = os.path.join(
81 os.system(
84 if os.path.exists(regression_correct):
85 diff = os.popen(
102 os.system("rm -f %s" % regression_output)
110 files = os
[all...]
/gem5/src/systemc/core/
H A Dsc_main.cc181 operator << (std::ostream &os, sc_status s) argument
185 os << "SC_ELABORATION";
188 os << "SC_BEFORE_END_OF_ELABORATION";
191 os << "SC_END_OF_ELABORATION";
194 os << "SC_START_OF_SIMULATION";
197 os << "SC_RUNNING";
200 os << "SC_PAUSED";
203 os << "SC_STOPPED";
206 os << "SC_END_OF_SIMULATION";
211 os << "SC_END_OF_INITIALIZATIO
[all...]
/gem5/src/kern/linux/
H A Dhelpers.hh55 void dumpDmesg(ThreadContext *tc, std::ostream &os);
/gem5/src/systemc/ext/dt/fx/
H A Dscfx_params.hh169 scfx_params::dump(::std::ostream &os) const
171 os << "scfx_params" << ::std::endl;
172 os << "(" << ::std::endl;
173 os << "type_params = ";
174 m_type_params.dump( os );
175 os << "enc = " << m_enc << ::std::endl;
176 os << "cast_switch = ";
177 m_cast_switch.dump( os );
178 os << ")" << ::std::endl;
/gem5/util/batch/
H A Djob.py30 import os, os.path, shutil, signal, socket, sys
31 from os import environ as env
32 from os.path import join as joinpath, expanduser
39 for root, dirs, files in os.walk(dir, False):
41 os.remove(joinpath(root, name))
43 os.rmdir(joinpath(root, name))
71 return os.spawnvp(os.P_WAIT, args[0], args)
81 if os
[all...]
/gem5/ext/googletest/googletest/include/gtest/
H A Dgtest-printers.h120 ::std::ostream* os);
131 // TypeWithoutFormatter<T, kTypeKind>::PrintValue(value, os) is called
139 static void PrintValue(const T& value, ::std::ostream* os) { argument
141 sizeof(value), os); local
153 static void PrintValue(const T& value, ::std::ostream* os) { argument
158 *os << ("<" + pretty_str + ">");
172 static void PrintValue(const T& value, ::std::ostream* os) { argument
174 *os << kBigInt;
204 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
208 kConvertibleToInteger : kOtherType)>::PrintValue(x, &os);
203 operator <<( ::std::basic_ostream<Char, CharTraits>& os, const T& x) argument
222 DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) argument
370 DefaultPrintTo(IsContainer , false_type , const C& container, ::std::ostream* os) argument
404 DefaultPrintTo(IsNotContainer , true_type , T* p, ::std::ostream* os) argument
436 DefaultPrintTo(IsNotContainer , false_type , const T& value, ::std::ostream* os) argument
454 PrintTo(const T& value, ::std::ostream* os) argument
487 PrintTo(char c, ::std::ostream* os) argument
491 PrintTo(static_cast<unsigned char>(c), os); local
495 PrintTo(bool x, ::std::ostream* os) argument
510 PrintTo(char* s, ::std::ostream* os) argument
511 PrintTo(ImplicitCast_<const char*>(s), os); local
516 PrintTo(const signed char* s, ::std::ostream* os) argument
517 PrintTo(ImplicitCast_<const void*>(s), os); local
519 PrintTo(signed char* s, ::std::ostream* os) argument
520 PrintTo(ImplicitCast_<const void*>(s), os); local
522 PrintTo(const unsigned char* s, ::std::ostream* os) argument
523 PrintTo(ImplicitCast_<const void*>(s), os); local
525 PrintTo(unsigned char* s, ::std::ostream* os) argument
526 PrintTo(ImplicitCast_<const void*>(s), os); local
537 PrintTo(wchar_t* s, ::std::ostream* os) argument
538 PrintTo(ImplicitCast_<const wchar_t*>(s), os); local
548 PrintRawArrayTo(const T a[], size_t count, ::std::ostream* os) argument
559 PrintTo(const ::string& s, ::std::ostream* os) argument
565 PrintTo(const ::std::string& s, ::std::ostream* os) argument
572 PrintTo(const ::wstring& s, ::std::ostream* os) argument
579 PrintTo(const ::std::wstring& s, ::std::ostream* os) argument
600 PrintTo(const ::std::tr1::tuple<& t, ::std::ostream* os) argument
605 PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) argument
610 PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) argument
615 PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) argument
620 PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) argument
625 PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5>& t, ::std::ostream* os) argument
632 PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6>& t, ::std::ostream* os) argument
639 PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7>& t, ::std::ostream* os) argument
646 PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8>& t, ::std::ostream* os) argument
653 PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9>& t, ::std::ostream* os) argument
660 PrintTo( const ::std::tr1::tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>& t, ::std::ostream* os) argument
669 PrintTo(const ::std::tuple<Types...>& t, ::std::ostream* os) argument
676 PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) argument
698 Print(const T& value, ::std::ostream* os) argument
716 UniversalPrintArray(const T* begin, size_t len, ::std::ostream* os) argument
764 Print(const T& value, ::std::ostream* os) argument
783 Print(const T& value, ::std::ostream* os) argument
790 Print(const T& value, ::std::ostream* os) argument
804 Print(const char* str, ::std::ostream* os) argument
808 UniversalPrint(string(str), os); local
815 Print(char* str, ::std::ostream* os) argument
824 Print(const wchar_t* str, ::std::ostream* os) argument
828 UniversalPrint(::std::wstring(str), os); local
837 Print(wchar_t* str, ::std::ostream* os) argument
843 UniversalTersePrint(const T& value, ::std::ostream* os) argument
852 UniversalPrint(const T& value, ::std::ostream* os) argument
923 PrintPrefixTo(const Tuple& t, ::std::ostream* os) argument
959 PrintTupleTo(const Tuple& t, ::std::ostream* os) argument
[all...]
/gem5/util/pbs/
H A Djob.py32 import os, os.path, shutil, signal, socket, sys
33 from os import environ as env
34 from os.path import join as joinpath, expanduser
41 for root, dirs, files in os.walk(dir, False):
43 os.remove(joinpath(root, name))
45 os.rmdir(joinpath(root, name))
73 return os.spawnvp(os.P_WAIT, args[0], args)
83 if os
[all...]
/gem5/ext/googletest/googlemock/src/
H A Dgmock-cardinalities.cc85 virtual void DescribeTo(::std::ostream* os) const;
108 void BetweenCardinalityImpl::DescribeTo(::std::ostream* os) const {
111 *os << "never called";
113 *os << "called any number of times";
115 *os << "called at most " << FormatTimes(max_);
118 *os << "called " << FormatTimes(min_);
120 *os << "called at least " << FormatTimes(min_);
123 *os << "called between " << min_ << " and " << max_ << " times";
131 ::std::ostream* os) {
133 *os << "calle
130 DescribeActualCallCountTo(int actual_call_count, ::std::ostream* os) argument
[all...]
/gem5/ext/testlib/
H A D__init__.py43 #TODO Remove this as an export, users should getcwd from os
44 from os import getcwd
/gem5/ext/googletest/googlemock/scripts/generator/
H A Dgmock_gen.py21 import os
26 sys.path.append(os.path.dirname(__file__))
/gem5/ext/pybind11/tools/
H A Dlibsize.py2 import os
16 if not os.path.exists(lib):
19 libsize = os.path.getsize(lib)
21 print("------", os.path.basename(lib), "file size:", libsize, end='')
23 if os.path.exists(save):
/gem5/ext/googletest/googlemock/scripts/
H A Dupload_gmock.py42 import os
52 my_dir = os.path.dirname(os.path.abspath(__file__))
53 upload_py_path = os.path.join(my_dir, 'upload.py')
74 os.execv(upload_py_path, upload_py_argv)
/gem5/ext/googletest/googletest/scripts/
H A Dupload_gtest.py42 import os
52 my_dir = os.path.dirname(os.path.abspath(__file__))
53 upload_py_path = os.path.join(my_dir, 'upload.py')
74 os.execv(upload_py_path, upload_py_argv)
/gem5/ext/pybind11/
H A Dsetup.py8 import os
12 if os.environ.get('PYBIND11_USE_CMAKE'):
50 subdir = os.path.dirname(os.path.relpath(header, 'include/pybind11'))
51 install_dir = os.path.join(self.install_dir, subdir)
/gem5/site_scons/site_tools/
H A Dgit.py42 import os
75 os.unlink(hook.get_abspath())
78 os.mkdir(git_hooks.get_abspath())
82 os.path.isabs(os.readlink(git_hooks.get_abspath()))
87 script_path = os.path.relpath(
88 os.path.realpath(script.get_abspath()),
89 os.path.realpath(hook.Dir(".").get_abspath()))
94 os.symlink(script_path, hook.get_abspath())

Completed in 24 milliseconds

1234567891011>>