Searched refs:files (Results 1 - 25 of 39) sorted by relevance

12

/gem5/src/mem/slicc/ast/
H A DDeclListAST.py41 def files(self, parent=None): member in class:DeclListAST
44 s |= decl.files(parent)
H A DDeclAST.py34 def files(self, parent=None): member in class:DeclAST
H A DMachineAST.py43 def files(self, parent=None): member in class:MachineAST
50 s |= self.decls.files(self.ident)
H A DTypeDeclAST.py41 def files(self, parent=None): member in class:TypeDeclAST
H A DEnumDeclAST.py41 def files(self, parent=None): member in class:EnumDeclAST
H A DStateDeclAST.py40 def files(self, parent=None): member in class:StateDeclAST
H A DFuncDeclAST.py43 def files(self, parent=None): member in class:FuncDeclAST
/gem5/util/
H A Dcscope-index.py30 # 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 Doprofile-top.py54 (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 Dstyle.py97 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 Dhgfilesize.py17 '''forbid files over a given size'''
25 for f in ctx.files():
H A Dhgstyle.py110 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 Dfind_copyrights.py228 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 Dcpt_upgrader.py309 for root,dirs,files in os.walk(path):
310 for name in files:
/gem5/src/mem/slicc/
H A Dmain.py42 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 Doutput.cc117 * @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 Doutput.hh138 /** Interface for creating files in a gem5 output directory. */
149 file_map_t files; member in class:OutputDirectory
/gem5/src/arch/arm/
H A Dsemihosting.cc148 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 Dregression.py110 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__.py122 def fmt(files):
123 f = map(lambda s: s[com_pfx_len:], files)
/gem5/util/style/
H A Drepo.py92 """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 Dfile_types.py122 # 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 Dloader.py52 - `.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 Dupload.py448 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 Dupload.py448 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...]

Completed in 39 milliseconds

12