/gem5/src/unittest/ |
H A D | unittest.cc | 51 checkVal(const char *file, const unsigned line, argument 60 result ? "PASSED" : "FAILED", file, line, test);
|
/gem5/src/dev/ |
H A D | pixelpump.cc | 100 line(0), _posX(0), _underrun(false) 111 SERIALIZE_SCALAR(line); 125 UNSERIALIZE_SCALAR(line); 150 // Set the current line past the last line in the frame. This 152 line = _timings.linesPerFrame(); 185 line++; 186 if (line >= _timings.linesPerFrame()) { 188 line = 0; 191 if (line [all...] |
/gem5/ext/mcpat/regression/ |
H A D | verify_output.py | 182 for line in output_file_handle: 183 line = line.rstrip() variable in class:Component 184 if ":" in line: 202 new_node.set_name_and_level(line) 211 elif line is not "": 212 tokens = line.split() 213 if "Area" in line: 215 elif "Peak Dynamic Power" in line: 217 elif "Peak Dynamic" in line [all...] |
/gem5/ext/ply/example/BASIC/ |
H A D | basiclog.py | 42 # Specifying a line number with no code deletes that line from 47 line = raw_input("[BASIC] ") variable 50 if not line: continue 51 line += "\n" 52 prog = basparse.parse(line,debug=log)
|
/gem5/util/minorview/ |
H A D | parse.py | 73 def remove_trailing_ws(line): 74 return re.sub('\s*$', '', line) 76 def remove_leading_and_trailing_ws(line): 77 return re.sub('\s*$', '', re.sub('^\s*', '', line))
|
/gem5/src/base/ |
H A D | hostinfo.cc | 76 char line[80]; local 83 if (fgets(line, 80, fp)) { 84 if (startswith(line, target)) { 86 sscanf(line, format, &usage);
|
/gem5/configs/common/ |
H A D | BPConfig.py | 78 for line in doc_wrapper.wrap(doc): 79 print(line) 129 for line in doc_wrapper.wrap(doc): 130 print(line)
|
H A D | HWPConfig.py | 78 for line in doc_wrapper.wrap(doc): 79 print(line)
|
/gem5/util/style/ |
H A D | file_types.py | 74 # languages based on #! line of first file 89 provided and openok is True, open the file and read the first line 106 # if a first line was not provided but the file is ok to open, 107 # grab the first line of the file. 113 # try to detect language based on #! in first line 182 # grab all of the lines of the file and strip them of their line ending 183 old_lines = list(line.rstrip('\r\n') for line in src.xreadlines()) 186 for line in src.xreadlines(): 187 line [all...] |
/gem5/util/plot_dram/ |
H A D | dram_lat_mem_rd_plot.py | 78 for line in simout: 80 ranges.append(int(line) / 1024) 82 match = re.match("lat_mem_rd with (\d+) iterations, ranges:.*", line) 96 for line in stats: 97 match = re.match(".*readLatencyHist::mean\s+(.+)\s+#.*", line)
|
H A D | PlotPowerStates.py | 141 stats_file.readline() # the 'Begin' line 151 for line in stats_file: 152 if 'Begin' in line: 155 if len(line.strip()) == 0: 159 if 'system.mem_ctrls_0.memoryStateTime' in line: 161 line = line.strip() 164 statistic, stime = line.split()[0:2] 171 elif line.strip().split()[0] in StatToKey.keys(): 174 statistic, e_val = line [all...] |
/gem5/ext/googletest/googlemock/scripts/ |
H A D | fuse_gmock_files.py | 134 # Reads each line in the given gmock header. 135 for line in file(os.path.join(gmock_root, gmock_header_path), 'r'): 136 m = INCLUDE_GMOCK_FILE_REGEX.match(line) 141 m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line) 152 # Otherwise we copy the line unchanged to the output file. 153 output_file.write(line) 173 # Reads each line in the given gmock source file. 174 for line in file(os.path.join(gmock_root, gmock_source_file), 'r'): 175 m = INCLUDE_GMOCK_FILE_REGEX.match(line) 186 m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line) [all...] |
/gem5/ext/mcpat/cacti/ |
H A D | io.cc | 56 char line[5000]; local 65 while (fscanf(fp, "%[^\n]\n", line) != EOF) { 67 if (!strncmp("-size", line, strlen("-size"))) { 68 sscanf(line, "-size %[(:-~)*]%u", jk, &(cache_sz)); 72 if (!strncmp("-page size", line, strlen("-page size"))) { 73 sscanf(line, "-page size %[(:-~)*]%u", jk, &(page_sz_bits)); 77 if (!strncmp("-burst length", line, strlen("-burst length"))) { 78 sscanf(line, "-burst %[(:-~)*]%u", jk, &(burst_len)); 82 if (!strncmp("-internal prefetch width", line, strlen("-internal prefetch width"))) { 83 sscanf(line, " [all...] |
/gem5/src/dev/mips/ |
H A D | malta.hh | 100 void postPciInt(int line) override; 105 void clearPciInt(int line) override;
|
H A D | malta.cc | 73 Malta::postPciInt(int line) argument 79 Malta::clearPciInt(int line) argument
|
/gem5/src/dev/sparc/ |
H A D | t1000.cc | 65 T1000::postPciInt(int line) argument 71 T1000::clearPciInt(int line) argument
|
/gem5/ext/drampower/src/ |
H A D | TraceParser.h | 55 // function for parsing one line of the trace 56 Data::MemCommand parseLine(std::string line);
|
/gem5/util/ |
H A D | o3-pipeview.py | 80 line = None 86 line = trace.readline() 87 if not line: return 88 fields = line.split(':') 93 line = trace.readline() 94 if not line: return 95 fields = line.split(':') 99 line = trace.readline() 100 if not line: return 101 fields = line [all...] |
H A D | rundiff | 64 # then specify '-x' on the command line to use it. 106 # Next line number available to print from each file. Generally this 107 # corresponds to the oldest line in @precontext, or the oldest line in 118 my $line = <$fh>; 119 last if (!defined($line)); 120 push @$array, $line; 130 my $line = shift @$array; 131 last if (!defined($line)); 132 print $prefix, $line; [all...] |
/gem5/ext/systemc/src/sysc/kernel/ |
H A D | sc_ver.cpp | 101 std::string line; local 104 // temporary stream to print copyright line-wise with indentation 109 while( getline( copyright, line ) ) 110 cerr << indent << line << endl; 180 // eliminate source line number skew when check-ins are done.
|
/gem5/src/mem/cache/prefetch/ |
H A D | sbooe.hh | 82 /** Cache line predicted by the candidate prefetcher */ 83 Addr line; member in struct:SBOOEPrefetcher::SandboxEntry 116 * Insert the line address being accessed to the cache into the 118 * @param line Line address being accessed 121 void insert(Addr line, Tick tick); 141 * Process an access to the specified line address and update the 143 * @param line Address of the line being accessed 146 bool access(Addr line);
|
/gem5/src/dev/x86/ |
H A D | i8259.hh | 81 void requestInterrupt(int line); 82 void handleEOI(int line); 121 void signalInterrupt(int line);
|
/gem5/src/cpu/minor/ |
H A D | pipe_data.cc | 179 assert(!line); 181 line = new uint8_t[width_]; 192 assert(!line); 194 line = packet->getPtr<uint8_t>(); 202 assert(line); 203 /* If packet is not NULL then the line must belong to the packet so 204 * we don't need to separately deallocate the line */ 208 delete [] line; 210 line = NULL;
|
/gem5/ext/googletest/googletest/scripts/ |
H A D | fuse_gtest_files.py | 99 'or omit it on the command line.') 164 # Reads each line in the given gtest header. 165 for line in open(os.path.join(gtest_root, gtest_header_path), 'r'): 166 m = INCLUDE_GTEST_FILE_REGEX.match(line) 171 # Otherwise we copy the line unchanged to the output file. 172 output_file.write(line) 192 # Reads each line in the given gtest source file. 193 for line in open(os.path.join(gtest_root, gtest_source_file), 'r'): 194 m = INCLUDE_GTEST_FILE_REGEX.match(line) 211 m = INCLUDE_SRC_FILE_REGEX.match(line) [all...] |
/gem5/src/python/m5/util/ |
H A D | __init__.py | 167 line = ' ' * indent 169 if len(line) + len(item) > 76: 170 print(line) 171 line = ' ' * indent 174 line += '%s, ' % item 176 line += item 177 print(line)
|