Searched refs:file (Results 1 - 25 of 145) sorted by relevance

123456

/gem5/src/systemc/tests/systemc/misc/user_guide/chpt3.1/
H A Dsg.cpp4 more contributor license agreements. See the NOTICE file distributed
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
45 FILE *file; local
47 file = fopen("./chpt3.1/testcase", "r");
50 fscanf(file, "%c", &c);
/gem5/src/systemc/tests/systemc/misc/user_guide/chpt3.2/
H A Dsg.cpp4 more contributor license agreements. See the NOTICE file distributed
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
45 FILE *file; local
47 file = fopen("./chpt3.2/testcase", "r");
50 if (fscanf(file, "%c", &c) == EOF)
/gem5/ext/mcpat/regression/
H A Dregression.py68 # For each power_region file, run McPAT on it and check the
100 print "WARN: Cleaning (deleting) regression output file: "\
111 for file in files:
112 if "power_region" in file and ".xml" in file:
120 for file in files:
121 if "power_region" in file and ".xml" in file:
123 fileparts = file.split(".")
129 print "Valid regression test: %s/%s" % (testdir, file)
[all...]
/gem5/src/systemc/tests/systemc/misc/unit/control/wait/
H A Dwait.cpp4 more contributor license agreements. See the NOTICE file distributed
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
107 sc_assert(thread->file == NULL); // 1st wait(delay)
112 sc_assert(endsWith(thread->file, "wait.cpp")); // SC_WAITN
115 sc_assert(thread->file == NULL); // 2nd wait(delay)
120 sc_assert(endsWith(thread->file, "wait.cpp")); // SC_WAIT
123 sc_assert(thread->file == NULL); // 3rd wait(delay)
128 sc_assert(endsWith(thread->file, "wait.cpp")); // SC_WAIT_UNTIL
131 sc_assert(thread->file
[all...]
/gem5/src/unittest/
H A Dunittest.cc51 checkVal(const char *file, const unsigned line, argument
60 result ? "PASSED" : "FAILED", file, line, test);
H A Dunittest.hh32 * @file This file defines functions and macros for use in unit tests.
43 * @param file The name of the file this check is in.
48 void checkVal(const char *file, const unsigned line,
/gem5/src/base/loader/
H A Dsymtab.cc75 ifstream file(filename.c_str());
77 if (!file)
78 fatal("file error: Can't open symbol table file %s\n", filename);
80 while (!file.eof()) {
81 getline(file, buffer);
107 file.close();
H A Dsymtab.hh68 SymbolTable(const std::string &file) { load(file); } argument
73 bool load(const std::string &file);
/gem5/tests/test-progs/asmtest/src/riscv/
H A Drun-tests.py126 file = open(test_summary_out, "w") variable
135 file.write("%-50s failed - signal = %d\n" % (entry[0], -1 * entry[1]))
137 file.write("%-50s failed - status = %d\n" % (entry[0], entry[1]))
139 file.write("%-50s passed\n" % (entry[0]))
141 file.close()
/gem5/util/batch/
H A Djob.py77 def file(self, filename): member in class:JobDir
94 return os.path.isfile(self.file(filename))
97 filename = self.file(filename)
99 f = file(filename, 'w')
107 filename = self.file(filename)
112 filename = self.file(filename)
113 f = file(filename, 'r')
119 filename = self.file('.status')
121 f = file(filename, 'a')
129 filename = self.file('
[all...]
/gem5/util/pbs/
H A Djob.py79 def file(self, filename): member in class:JobDir
96 return os.path.isfile(self.file(filename))
99 filename = self.file(filename)
101 f = file(filename, 'w')
109 filename = self.file(filename)
114 filename = self.file(filename)
115 f = file(filename, 'r')
121 filename = self.file('.status')
123 f = file(filename, 'a')
131 filename = self.file('
[all...]
/gem5/tests/
H A Drun.py102 """Test if a file exists and abort/skip test if not.
156 # find path to directory containing this file
162 # generate path to binary file
163 def binpath(app, file=None):
165 if not file:
166 file = app
167 return joinpath(test_progs, app, 'bin', isa, opsys, file)
169 # generate path to input file
170 def inputpath(app, file=None):
171 # input file ha
[all...]
/gem5/tests/gem5/learning_gem5/
H A Dpart2_test.py33 get_verifier = lambda file: verifier.MatchStdout(joinpath(ref_path, file))
/gem5/src/arch/arm/
H A Dsemihosting.cc146 // Create an empty place-holder file for position 0 as semi-hosting
147 // calls typically expect non-zero file handles.
236 files[i]->serializeSection(cp, csprintf("file%i", i));
249 files[i] = FileBase::create(*this, cp, csprintf("file%i", i));
295 std::unique_ptr<ArmSemihosting::FileBase> file =
297 int64_t ret = file->open();
303 files.push_back(std::move(file));
313 DPRINTF(Semihosting, "Semihosting SYS_CLOSE(%i): Illegal file\n");
317 std::unique_ptr<FileBase> &file = files[argv[1]]; local
318 int64_t error = file
715 std::unique_ptr<FileBase> file; local
729 std::unique_ptr<FileBase> file; local
[all...]
/gem5/ext/mcpat/cacti/
H A Dio.cc52 /* Parses "cache.cfg" file */
1283 fstream file("out.csv", ios::in);
1284 bool print_index = file.fail();
1285 file.close();
1287 file.open("out.csv", ios::out | ios::app);
1288 if (file.fail() == true) {
1292 file << "Tech node (nm), ";
1293 file << "Capacity (bytes), ";
1294 file << "Number of banks, ";
1295 file << "Associativit
[all...]
/gem5/util/
H A Dcscope-index.py48 file_list = file('cscope.files', 'w')
/gem5/src/base/
H A Doutput.cc117 * @file This file manages creating / deleting output files for the simulator.
148 OutputDirectory::close(OutputStream *file) argument
150 auto i = files.find(file->name());
152 fatal("Attempted to close an unregistred file stream");
156 delete file;
208 OutputStream *file = checkForStdio(name); local
209 if (file)
210 return file;
229 // correct mode for gzofstream as this used directly to set the file
245 OutputStream *file = checkForStdio(name); local
[all...]
/gem5/src/systemc/ext/core/
H A Dsc_process_handle.hh123 sc_process_b(const char *name) : sc_object(name), file(nullptr), lineno(0)
125 sc_process_b() : sc_object(), file(nullptr), lineno(0) {}
127 const char *file; member in class:sc_core::sc_process_b
132 void sc_set_location(const char *file, int lineno);
/gem5/configs/boot/
H A Dbbench-ics.rcS26 am start -a android.intent.action.VIEW -d file:///data/bbench/index.html -t application/x-webarchive-xml
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_report.cpp4 more contributor license agreements. See the NOTICE file distributed
6 Accellera licenses this file to you under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with the
81 file(empty_dup(0)),
99 file(empty_dup(file_)),
113 file(empty_dup(other.file)),
136 swap( file, that.file );
146 if ( file !
[all...]
/gem5/tests/configs/
H A Dcheckpoint.py117 print("Test done.", file=sys.stderr)
122 print("Test failed.", file=sys.stderr)
/gem5/src/base/stats/
H A Dtext.hh74 Text(const std::string &file);
78 void open(const std::string &file);
/gem5/ext/iostream3/
H A Dzfstream.cc22 : file(NULL), io_mode(std::ios_base::openmode(0)), own_fd(false),
32 // Sync output buffer and close only if responsible for file
46 return gzsetparams(file, comp_level, comp_strategy);
49 // Open gzipped file
54 // Fail if file already open
66 // Attempt to open file
67 if ((file = gzopen(name, char_mode)) == NULL)
77 // Attach to gzipped file
82 // Fail if file already open
94 // Attempt to attach to file
[all...]
/gem5/ext/googletest/googlemock/include/gmock/internal/
H A Dgmock-internal-utils.h34 // This file defines some utilities useful for implementing Google
268 // Reports a failure that occurred at the given source file location.
269 virtual void ReportFailure(FailureType type, const char* file, int line,
281 inline void Assert(bool condition, const char* file, int line,
285 file, line, msg);
288 inline void Assert(bool condition, const char* file, int line) {
289 Assert(condition, file, line, "Assertion failed.");
294 inline void Expect(bool condition, const char* file, int line,
298 file, line, msg);
301 inline void Expect(bool condition, const char* file, in
[all...]
/gem5/util/style/
H A Dfile_types.py31 # lanuage type for each file extension
66 # languages based on file prefix
74 # languages based on #! line of first file
88 firstline of the file. If the firstline of the file is not
89 provided and openok is True, open the file and read the first line
95 # first try to detect language based on file extension
101 # now try to detect language based on file prefix
106 # if a first line was not provided but the file is ok to open,
107 # grab the first line of the file
[all...]

Completed in 31 milliseconds

123456