/gem5/src/mem/slicc/ast/ |
H A D | DeclListAST.py | 41 def files(self, parent=None): member in class:DeclListAST 44 s |= decl.files(parent)
|
H A D | DeclAST.py | 34 def files(self, parent=None): member in class:DeclAST
|
H A D | MachineAST.py | 43 def files(self, parent=None): member in class:MachineAST 50 s |= self.decls.files(self.ident)
|
H A D | TypeDeclAST.py | 41 def files(self, parent=None): member in class:TypeDeclAST
|
H A D | EnumDeclAST.py | 41 def files(self, parent=None): member in class:EnumDeclAST
|
H A D | StateDeclAST.py | 40 def files(self, parent=None): member in class:StateDeclAST
|
H A D | FuncDeclAST.py | 43 def files(self, parent=None): member in class:FuncDeclAST
|
/gem5/util/ |
H A D | cscope-index.py | 30 # Generate list of files to index with cscope and then generate cscope index. 39 # suffixes of files to index 48 file_list = file('cscope.files', 'w') 51 for dirpath,subdirs,files in os.walk(os.path.join(cwd, 'src')): 64 okfiles = [f for f in files if oksuffix(f)]
|
H A D | oprofile-top.py | 54 (opts, files) = getopt.getopt(sys.argv[1:], 'i') 56 print "usage", sys.argv[0], "[-i] <files>" 64 print files 65 f = open(files.pop())
|
H A D | style.py | 97 epilog="""If no files are specified, the style checker tries to 98 determine the list of modified and added files from the version 110 instead of whole files""") 120 parser.add_argument("files", metavar="FILE", nargs="*", 131 files = args.files variable 132 if not files and repo: 134 files = [ repo.file_path(f) for f in added + modified ] variable 136 for filename in files:
|
H A D | hgfilesize.py | 17 '''forbid files over a given size''' 25 for f in ctx.files():
|
H A D | hgstyle.py | 110 files = [ (fn, all_regions) for fn in added ] + \ 113 files = [ (fn, all_regions) for fn in added + modified + clean ] 115 for fname, mod_regions in files: 121 """check files for proper m5 style guidelines 123 Without an argument, checks all modified and added files for gem5 124 coding style violations. A list of files can be specified to limit 127 files are checked in their entirety while only modifications of 128 modified files are checked). 130 The --all option can be specified to include clean files and check 131 modified files i [all...] |
H A D | find_copyrights.py | 228 files = [] 232 files += [ (base, lang_type(base)) ] 234 files += find_files(base) 241 for filename, lang in files: 272 owner = '%s (%s files)' % (owner, count)
|
H A D | cpt_upgrader.py | 309 for root,dirs,files in os.walk(path): 310 for name in files:
|
/gem5/src/mem/slicc/ |
H A D | main.py | 42 help_details = '''This is intended to be used to process slicc files as a 70 parser.add_option("-F", "--print-files", action='store_true', 71 help="Print files that SLICC will generate") 76 opts,files = parser.parse_args(args=args) 78 if len(files) != 1: 82 slicc_file = files[0] 84 print("Must specify a .slicc file with a list of state machine files") 100 for i in sorted(slicc.files()): 107 output("Writing HTML files...") 110 output("Writing C++ files [all...] |
/gem5/src/base/ |
H A D | output.cc | 117 * @file This file manages creating / deleting output files for the simulator. 129 for (auto& f: files) { 150 auto i = files.find(file->name()); 151 if (i == files.end()) 154 files.erase(i); 177 // Recreate output files 178 for (file_map_t::iterator i = files.begin(); i != files.end(); ++i) { 237 files[name] = os; 249 auto i = files [all...] |
H A D | output.hh | 138 /** Interface for creating files in a gem5 output directory. */ 149 file_map_t files; member in class:OutputDirectory
|
/gem5/src/arch/arm/ |
H A D | semihosting.cc | 148 files.push_back(nullptr); 230 paramOut(cp, "num_files", files.size()); 231 for (int i = 0; i < files.size(); i++) { 233 if (!files[i]) 236 files[i]->serializeSection(cp, csprintf("file%i", i)); 247 files.resize(num_files); 249 files[i] = FileBase::create(*this, cp, csprintf("file%i", i)); 303 files.push_back(std::move(file)); 304 return retOK(files.size() - 1); 312 if (argv[1] > files [all...] |
/gem5/ext/mcpat/regression/ |
H A D | regression.py | 110 files = os.listdir(testdir) 111 for file in files: 119 files = os.listdir(testdir) 120 for file in files:
|
/gem5/site_scons/gem5_scons/ |
H A D | __init__.py | 122 def fmt(files): 123 f = map(lambda s: s[com_pfx_len:], files)
|
/gem5/util/style/ |
H A D | repo.py | 92 """Get a tuple describing the files that have been staged for a 173 status = self.status(files=[fname], cached=cached) 183 def status(self, filter=None, files=[], cached=False): 189 cmd += [ self.head_revision(), "--" ] + files 238 files = subprocess.check_output([ self.hg, "status" ]).rstrip("\n") 239 if files: 240 return [ f.split(" ") for f in files.split("\n") ]
|
H A D | file_types.py | 122 # directories and files to ignore by default 129 '''find all files in a directory and its subdirectories based on a 131 files specified in file_ignore''' 143 for root,dirs,files in os.walk(base): 149 for filename in files: 151 # skip ignored files
|
/gem5/ext/testlib/ |
H A D | loader.py | 52 - `.test.py` - 'hidden' files are ignored. 58 2. With all files discovered execute each file gathering its test items we 110 def _assert_files_in_same_dir(files): 112 if files: 113 directory = os.path.dirname(files[0]) 114 for f in files: 153 files = {uid.UID.uid_to_path(id_) for id_ in uids} 154 for file_ in files: 182 Load files from the given root directory which match 289 directories which contain a list of files matchin [all...] |
/gem5/ext/googletest/googlemock/scripts/ |
H A D | upload.py | 448 help="Base files will be downloaded by the server " 449 "(side-by-side diffs may not work on files with CRs).") 498 def EncodeMultipartFormData(fields, files): 503 files: A sequence of (name, filename, value) elements for data to be 504 uploaded as files. 519 for (key, filename, value) in files: 609 """Return a list of files unknown to the VCS.""" 614 """Show an "are you sure?" prompt if there are unknown files.""" 617 print "The following files are not added to version control:" 631 new_content: For text files, thi [all...] |
/gem5/ext/googletest/googletest/scripts/ |
H A D | upload.py | 448 help="Base files will be downloaded by the server " 449 "(side-by-side diffs may not work on files with CRs).") 498 def EncodeMultipartFormData(fields, files): 503 files: A sequence of (name, filename, value) elements for data to be 504 uploaded as files. 519 for (key, filename, value) in files: 609 """Return a list of files unknown to the VCS.""" 614 """Show an "are you sure?" prompt if there are unknown files.""" 617 print "The following files are not added to version control:" 631 new_content: For text files, thi [all...] |