Searched refs:filename (Results 26 - 50 of 118) sorted by relevance

12345

/gem5/src/python/m5/util/
H A Dfdthelper.py253 def writeDtbFile(self, filename):
255 filename = os.path.realpath(filename)
257 with open(filename, 'wb') as f:
259 return filename
263 def writeDtsFile(self, filename):
265 filename = os.path.realpath(filename)
267 with open(filename, 'w') as f:
269 return filename
[all...]
/gem5/src/mem/
H A Dphysical.cc331 string filename = name() + ".store" + to_string(store_id) + ".pmem"; local
335 filename, range_size);
338 SERIALIZE_SCALAR(filename);
342 string filepath = CheckpointIn::dir() + "/" + filename.c_str();
346 filename);
359 filename);
367 filename);
404 string filename; local
405 UNSERIALIZE_SCALAR(filename);
406 string filepath = cp.cptDir + "/" + filename;
[all...]
/gem5/util/
H A Ddiff_config.pl187 # Split the path to get just the filename
190 my $filename = shift; # the input filename including path
191 my @splitName = split(/\//, $filename);
192 return $splitName[$#splitName]; # return just the filename, without path
200 my $filename = shift;
202 open CONFIG, "<$filename" or die $!;
/gem5/src/base/loader/
H A Dsymtab.cc72 SymbolTable::load(const string &filename) argument
75 ifstream file(filename.c_str());
78 fatal("file error: Can't open symbol table file %s\n", filename);
H A Decoff_object.cc110 warn("loadGlobalSymbols: wrong magic on %s\n", filename);
116 warn("loadGlobalSymbols: bad symbol header magic on %s\n", filename);
140 warn("loadGlobalSymbols: wrong magic on %s\n", filename);
146 warn("loadGlobalSymbols: bad symbol header magic on %s\n", filename);
/gem5/src/mem/ruby/system/
H A DRubySystem.cc207 RubySystem::writeCompressedTrace(uint8_t *raw_data, string filename, argument
211 string thefile = CheckpointIn::dir() + "/" + filename.c_str();
216 fatal("Can't open memory trace file '%s'\n", filename);
222 filename);
226 fatal("Write failed on memory trace file '%s'\n", filename);
230 fatal("Close failed on memory trace file '%s'\n", filename);
274 RubySystem::readCompressedTrace(string filename, uint8_t *&raw_data, argument
281 int fd = open(filename.c_str(), O_RDONLY);
284 fatal("Unable to open trace file %s", filename);
290 filename);
[all...]
/gem5/tests/gem5/
H A Dfixture.py250 def __new__(cls, url, path, filename):
251 target = joinpath(path, filename)
254 def _init(self, url, path, filename, **kwargs):
260 filename: string
266 self.filename = joinpath(path, filename)
267 self.name = "Downloaded:" + self.filename
278 urllib.urlretrieve(self.url, self.filename)
291 if not os.path.exists(self.filename):
301 if t > os.path.getmtime(self.filename)
[all...]
/gem5/ext/testlib/
H A Duid.py92 def __init__(self, filename, test_name, suite_name):
93 UID.__init__(self, filename, suite_name, test_name)
105 def __init__(self, filename, suite_name):
106 UID.__init__(self, filename, suite_name)
/gem5/src/proto/
H A Dprotoio.hh98 * Create an output stream for a given file name. If the filename
101 * @param filename Path to the file to create or truncate
103 ProtoOutputStream(const std::string& filename);
148 * Create an input stream for a given file name. If the filename
151 * @param filename Path to the file to read from
153 ProtoInputStream(const std::string& filename);
/gem5/src/sim/
H A Dcxx_config_ini.cc103 CxxIniFile::load(const std::string &filename) argument
105 return iniFile.load(filename);
H A Dfd_array.cc298 FDArray::openFile(std::string const& filename, int flags, mode_t mode) const argument
300 int sim_fd = open(filename.c_str(), flags, mode);
303 fatal("Unable to open %s with mode %O", filename, mode);
307 FDArray::openInputFile(std::string const& filename) const
309 return openFile(filename, O_RDONLY, 00);
313 FDArray::openOutputFile(std::string const& filename) const
315 return openFile(simout.resolve(filename),
H A Dcxx_config_ini.hh83 bool load(const std::string &filename);
/gem5/util/tlm/
H A Drun_gem5_fs.sh48 --dtb-filename=vexpress.aarch32.ll_20131205.0-gem5.1cpu.dtb \
/gem5/src/base/
H A Dhostinfo.cc73 procInfo(const char *filename, const char *target) argument
80 FILE *fp = fopen(filename, "r");
/gem5/ext/pybind11/tests/
H A Dtest_eval.cpp63 m.def("test_eval_file", [global](py::str filename) {
70 auto result = py::eval_file(filename, global, local);
/gem5/src/python/
H A Dimporter.py34 # filename and bytecode of the file.
39 def add_module(self, filename, abspath, modpath, code):
43 self.modules[modpath] = (filename, abspath, code)
/gem5/ext/ply/doc/
H A Dmakedoc.py46 print "usage: makedoc.py filename"
49 filename = sys.argv[1] variable
50 filenamebase = string.split(filename,".")[0]
68 data = open(filename).read() # Read data
69 open(filename+".bak","w").write(data) # Make backup
192 open(filename,"w").write(data)
/gem5/ext/googletest/googlemock/scripts/generator/cpp/
H A Dgmock_class.py126 def _GenerateMocks(filename, source, ast_list, desired_class_names):
183 (filename, ', '.join(missing_class_name_list)))
185 sys.stderr.write('No class found in %s\n' % filename)
205 filename = argv[1]
209 source = utils.ReadFile(filename)
213 builder = ast.BuilderFromSource(source, filename)
222 lines = _GenerateMocks(filename, source, entire_ast, desired_class_names)
/gem5/configs/dram/
H A Dlat_mem_rd.py173 def create_trace(filename, max_addr, burst_size, itt):
175 proto_out = gzip.open(filename, 'wb')
177 print("Failed to open ", filename, " for writing")
222 filename = os.path.join(m5.options.outdir, variable
227 create_trace(filename, r, burst_size, itt)
231 (nxt_state, period, filename))
237 (nxt_state, period, filename))
/gem5/ext/pybind11/tools/
H A Dmkdoc.py193 def extract(filename, node, prefix, output):
195 os.path.samefile(d(node.location.file.name), filename)):
204 extract(filename, i, sub_prefix, output)
213 output.append((name, filename, comment))
217 def __init__(self, filename, parameters, output):
219 self.filename = filename
225 print('Processing "%s" ..' % self.filename, file=sys.stderr)
229 tu = index.parse(self.filename, self.parameters)
230 extract(self.filename, t
[all...]
/gem5/util/stats/
H A Dprofile.py32 def __init__(self, filename):
33 self.filename = filename
34 fd = file(filename)
46 def __init__(self, filename):
47 self.filename = filename
57 return FileData(self.filename)
87 def __init__(self, filename=None, categorize=None, showidle=True):
88 super(PCData, self).__init__(self, filename)
[all...]
/gem5/ext/systemc/src/sysc/tracing/
H A Dsc_trace_file_base.h66 const char* filename() const function in class:sc_core::sc_trace_file_base
/gem5/src/gpu-compute/
H A Dhsa_object.cc44 : readonlyData(nullptr), filename(fname)
/gem5/src/cpu/testers/traffic_gen/
H A Dtrace_gen.hh123 * @param filename Path to the file to read from
125 InputStream(const std::string& filename);
/gem5/src/dev/storage/
H A Ddisk_image.cc79 RawDiskImage::open(const string &filename, bool rd_only) argument
81 if (!filename.empty()) {
84 file = filename;
91 panic("Error opening %s", filename);
184 : DiskImage(p), filename(p->image_file), child(p->child), table(NULL)
186 if (filename.empty()) {
189 if (!open(filename)) {
215 !filename.empty()) {
217 filename = "";
335 // filename wil
[all...]

Completed in 15 milliseconds

12345