/gem5/src/gpu-compute/ |
H A D | hsa_object.cc | 43 HsaObject::HsaObject(const std::string &fname) argument 44 : readonlyData(nullptr), filename(fname) 49 HsaObject::createHsaObject(const std::string &fname) argument 55 std::ifstream code_file(fname, std::ifstream::ate | std::ifstream::in | 68 if ((hsaObj = tryFile(fname, file_length, file_data))) { 74 fatal("Unknown HSA object type for file: %s.\n", fname);
|
H A D | hsa_object.hh | 56 static HsaObject* createHsaObject(const std::string &fname);
|
H A D | brig_object.hh | 79 static HsaObject* tryFile(const std::string &fname, int len, 93 BrigObject(const std::string &fname, int len, uint8_t *fileData);
|
H A D | brig_object.cc | 405 BrigObject::tryFile(const std::string &fname, int len, uint8_t *fileData) argument 412 return new BrigObject(fname, len, fileData); 415 BrigObject::BrigObject(const std::string &fname, int len, uint8_t *fileData) argument 416 : HsaObject(fname), storageMap(new StorageMap()) 422 "%s is not a BRIG file\n", fname); local 427 fname, mod_hdr->brigMajor, mod_hdr->brigMinor, 432 "count (%d) != expected value (%d)\n", fname, 468 DPRINTF(HSALoader, "BRIG object %s loaded.\n", fname);
|
/gem5/util/style/ |
H A D | repo.py | 50 def file_path(self, fname): 55 return os.path.join(self.repo_base(), fname) 57 def in_repo(self, fname): 64 fname = os.path.abspath(fname) 67 return os.path.commonprefix([repo_path, fname]) == repo_path 69 def repo_path(self, fname): 75 return os.path.relpath(fname, self.repo_base()) 99 def staged_regions(self, fname, context=0): 107 def modified_regions(self, fname, contex [all...] |
H A D | sort_includes.py | 106 def _include_matcher_fname(fname, **kwargs): 111 rex = re.compile(fname) 115 (keyword, fname, extra) = base_matcher(context, line) 116 if fname and rex.match(fname): 117 return (keyword, fname, extra) 140 (keyword, fname, extra) = base_matcher(context, line) 142 if fname == "%s.%s" % (base, header_map[ext]): 143 return (keyword, fname, extra)
|
H A D | style.py | 103 def match_re(fname): 104 return rex.match(fname) 125 def check_ignores(fname): 129 if rule(fname):
|
/gem5/util/ |
H A D | git-pre-commit.py | 69 for status, fname in git.status(filter="MA", cached=True): 71 print "Checking %s..." % fname 72 if check_ignores(fname): 75 regions = git.staged_regions(fname) 80 status = git.file_from_index(fname) 90 if not v.skip(fname) and v.check(fname, regions, fobj=f, silent=True): 91 failing_files.add(fname) 92 if not v.check(fname, regions): 93 staged_mismatch.add(fname) [all...] |
H A D | hgstyle.py | 67 def modregions(wctx, fname): 68 fctx = wctx.filectx(fname) 115 for fname, mod_regions in files: 116 if opt_no_ignore or not check_ignores(fname): 117 yield fname, mod_regions 163 for fname, mod_regions in _modified_regions(repo, pats, **opts): 165 if verifier.apply(joinpath(repo.root, fname), mod_regions):
|
/gem5/tests/testing/ |
H A D | units.py | 99 def ref_file(self, fname): 100 return os.path.join(self.ref_dir, fname) 102 def out_file(self, fname): 103 return os.path.join(self.test_dir, fname) 105 def _read_output(self, fname, default=""): 107 with open(self.out_file(fname), "r") as f: 219 def __init__(self, fname, **kwargs): 220 super(DiffOutFile, self).__init__("diff[%s]" % fname, 223 self.fname = fname [all...] |
/gem5/src/kern/linux/ |
H A D | events.hh | 70 std::string fname; member in class:Linux::DmesgDumpEvent 75 : PCEvent(q, desc, addr), fname(_fname) {} 90 std::string fname; member in class:Linux::KernelPanicEvent 95 : PCEvent(q, desc, addr), fname(_fname) {}
|
H A D | events.cc | 106 inform("Dumping kernel dmesg buffer to %s...\n", fname); 107 OutputStream *os = simout.create(fname); 119 inform("Dumping kernel dmesg buffer to %s...\n", fname); 120 OutputStream *os = simout.create(fname);
|
/gem5/src/systemc/tests/systemc/utils/sc_report/log_file/ |
H A D | log_file.cpp | 73 const char fname[] = "./sc_report.log"; local 88 sc_report_handler::set_log_file_name( fname ); 89 sc_assert( strcmp(fname,sc_report_handler::get_log_file_name()) == 0 ); 112 FILE* log = fopen( fname,"r" ); 114 SC_REPORT_FATAL( "Can not open the sc_report log file: ", fname );
|
/gem5/src/base/loader/ |
H A D | object_file.cc | 190 createObjectFile(const string &fname, bool raw) argument 193 int fd = open(fname.c_str(), O_RDONLY); 209 "Failed to determine size of object file %s\n", fname); 224 if ((file_obj = ElfObject::tryFile(fname, len, file_data)) != NULL) { 228 if ((file_obj = EcoffObject::tryFile(fname, len, file_data)) != NULL) { 232 if ((file_obj = AoutObject::tryFile(fname, len, file_data)) != NULL) { 236 if ((file_obj = DtbObject::tryFile(fname, len, file_data)) != NULL) { 241 return RawObject::tryFile(fname, len, file_data);
|
H A D | raw_object.hh | 52 static ObjectFile *tryFile(const std::string &fname, size_t len,
|
H A D | raw_object.cc | 38 RawObject::tryFile(const std::string &fname, size_t len, uint8_t *data) argument 40 return new RawObject(fname, len, data, ObjectFile::UnknownArch,
|
H A D | aout_object.cc | 43 AoutObject::tryFile(const string &fname, size_t len, uint8_t *data) argument 47 return new AoutObject(fname, len, data,
|
H A D | ecoff_object.hh | 61 static ObjectFile *tryFile(const std::string &fname,
|
H A D | aout_object.hh | 59 static ObjectFile *tryFile(const std::string &fname,
|
H A D | dtb_object.hh | 78 * @param fname path to file 83 static ObjectFile *tryFile(const std::string &fname,
|
H A D | dtb_object.cc | 43 DtbObject::tryFile(const std::string &fname, size_t len, uint8_t *data) argument 47 return new DtbObject(fname, len, data,
|
H A D | ecoff_object.cc | 53 EcoffObject::tryFile(const string &fname, size_t len, uint8_t *data) argument 57 return new EcoffObject(fname, len, data,
|
/gem5/src/base/ |
H A D | output.cc | 294 const string fname = resolve(name); local 296 if (fname.find(directory()) == string::npos) 299 if (isFile(fname)) { 301 auto i = files.find(fname); 307 if (::remove(fname.c_str()) != 0) 308 fatal("Could not erase file '%s'\n", fname); 312 DIR *subdir = opendir(fname.c_str()); 322 fname); 341 if (::remove(fname.c_str()) != 0) {
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | eval.h | 70 object eval_file(str fname, object global = globals(), object local = object()) { argument 83 std::string fname_str = (std::string) fname; 85 FILE *f = _Py_fopen_obj(fname.ptr(), "r"); 87 FILE *f = _Py_fopen(fname.ptr(), "r");
|
/gem5/tests/test-progs/insttest/src/riscv/ |
H A D | rv64i.cpp | 240 char fname[] = "test.txt"; local 243 int fd = open(fname, O_CREAT | O_WRONLY | O_TRUNC, 0644); 251 expect<int>(0, [=]{return access(fname, F_OK);}, "access F_OK"); 252 expect<int>(0, [=]{return access(fname, R_OK);}, "access R_OK"); 253 expect<int>(0, [=]{return access(fname, W_OK);}, "access W_OK"); 256 expect<bool>(true, [=]{return access(fname, X_OK) != 0;}, "access X_OK"); 259 int s = stat(fname, &stat_buf); 275 int fd = open(fname, O_RDONLY); 296 int fd = open(fname, O_RDONLY); 305 int un = unlink(fname); [all...] |