/gem5/ext/pybind11/tests/test_cmake_build/ |
H A D | test.py | 5 print("{} imports, runs, and adds: 1 + 2 = 3".format(sys.argv[1]))
|
/gem5/ext/fputils/tests/ |
H A D | test_helper.h | 44 __attribute__((format (printf, 1, 2), noreturn)); 47 __attribute__((format (printf, 1, 2))); 54 __attribute__((format (printf, 2, 3))); 57 __attribute__((format (printf, 2, 3)));
|
/gem5/ext/nomali/tests/ |
H A D | test_helpers.h | 38 __attribute__((format (printf, 1, 2), noreturn)); 41 __attribute__((format (printf, 1, 2))); 48 __attribute__((format (printf, 2, 3))); 51 __attribute__((format (printf, 2, 3)));
|
/gem5/src/base/ |
H A D | cprintf.hh | 50 const char *format; member in struct:cp::Print 64 Print(std::ostream &stream, const std::string &format); 65 Print(std::ostream &stream, const char *format); 102 switch (fmt.format) { 120 stream << "<bad format>"; 147 ccprintf(std::ostream &stream, const char *format, const Args &...args) argument 149 cp::Print print(stream, format); 156 cprintf(const char *format, const Args &...args) argument 158 ccprintf(std::cout, format, args...); 162 csprintf(const char *format, cons argument 175 ccprintf(std::ostream &stream, const std::string &format, const Args &...args) argument 181 cprintf(const std::string &format, const Args &...args) argument 187 csprintf(const std::string &format, const Args &...args) argument [all...] |
H A D | cprintf.cc | 44 Print::Print(std::ostream &stream, const std::string &format) argument 45 : stream(stream), format(format.c_str()), ptr(format.c_str()), cont(false) 53 Print::Print(std::ostream &stream, const char *format) argument 54 : stream(stream), format(format), ptr(format), cont(false) 124 fmt.format = Format::string; 129 fmt.format [all...] |
H A D | hostinfo.cc | 77 char format[80]; local 85 snprintf(format, sizeof(format), "%s %%ld", target); 86 sscanf(line, format, &usage);
|
H A D | time.cc | 74 Time::date(const string &format) const 79 if (format.empty()) { 90 strftime(buf, sizeof(buf), format.c_str(), tm);
|
H A D | logging.hh | 108 print(const Loc &loc, const char *format, const Args &...args) argument 111 ccprintf(ss, format, args...); 116 print(const Loc &loc, const std::string &format, const Args &...args) argument 118 print(loc, format.c_str(), args...); 183 * @param ... Printf-based format string with arguments, extends printout. 201 * @param ... Printf-based format string with arguments, extends printout. 226 * @param ... Printf-based format string with arguments, extends printout. 247 * @param ... Printf-based format string with arguments, extends printout.
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | buffer_info.h | 21 std::string format; // For homogeneous buffers, this should be set to format_descriptor<T>::format() member in struct:buffer_info 28 buffer_info(void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim, argument 30 : ptr(ptr), itemsize(itemsize), size(1), format(format), ndim(ndim), 40 : buffer_info(private_ctr_tag(), ptr, sizeof(T), format_descriptor<T>::format(), static_cast<ssize_t>(shape_in->size()), std::move(shape_in), std::move(strides_in)) { } 42 buffer_info(void *ptr, ssize_t itemsize, const std::string &format, ssize_t size) argument 43 : buffer_info(ptr, itemsize, format, 1, {size}, {itemsize}) { } 47 : buffer_info(ptr, sizeof(T), format_descriptor<T>::format(), size) { } 50 : buffer_info(view->buf, view->itemsize, view->format, vie 83 buffer_info(private_ctr_tag, void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim, detail::any_container<ssize_t> &&shape_in, detail::any_container<ssize_t> &&strides_in) argument [all...] |
/gem5/ext/dsent/libutil/ |
H A D | Assert.h | 36 const LibUtil::String& exception_msg = LibUtil::String::format("\nAt %s:%d\n", __FILE__, __LINE__) + (String)(msg_); \
|
/gem5/src/mem/slicc/ |
H A D | main.py | 49 def nprint(format, *args): 52 def eprint(format, *args): 54 format = format % args 56 print(format, file=sys.stderr)
|
/gem5/ext/dsent/model/electrical/ |
H A D | MatrixArbiter.cc | 158 w_or2_names[state_count] = String::format("W_OR2_%d_%d", i, j); 159 w_and2_names[state_count] = String::format("W_AND2_%d_%d", i, j); 160 w_inv_names[state_count] = String::format("W_INV_%d_%d", i, j); 161 w_dff_names[state_count] = String::format("W_DFF_%d_%d", i, j); 171 dis_inv_names[state_count] = String::format("Dis_INV_%d_%d", i, j); 172 dis_and2_names[state_count] = String::format("Dis_AND2_%d_%d", i, j); 173 dis_and2_names[state_count + number_states] = String::format("Dis_AND2_%d_%d", j, i); 208 createNet(String::format("W_INV_Out_%d_%d", i, j)); 209 createNet(String::format("W_OR2_Out_%d_%d", i, j)); 210 createNet(String::format("W_AND2_Out [all...] |
H A D | Multiplexer.cc | 142 StdCell* selinv0 = getTechModel()->getStdCellLib()->createStdCell("INV", String::format("Sel%dInv0", i)); 143 StdCell* selinv1 = getTechModel()->getStdCellLib()->createStdCell("INV", String::format("Sel%dInv1", i)); 151 getEventResult("Mux")->addSubResult(selinv0->getEventResult("INV"), String::format("Sel%dInv0", i), 1.0); 152 getEventResult("Mux")->addSubResult(selinv1->getEventResult("INV"), String::format("Sel%dInv1", i), 1.0); 170 ElectricalModel* selinv0 = (ElectricalModel*)getSubInstance(String::format("Sel%dInv0", i)); 171 ElectricalModel* selinv1 = (ElectricalModel*)getSubInstance(String::format("Sel%dInv1", i)); 330 ElectricalModel* selinv0 = (ElectricalModel*)getSubInstance(String::format("Sel%dInv0", i)); 331 ElectricalModel* selinv1 = (ElectricalModel*)getSubInstance(String::format("Sel%dInv1", i));
|
/gem5/ext/pybind11/tools/ |
H A D | libsize.py | 17 sys.exit("Error: requested file ({}) does not exist".format(lib)) 32 print(" (change of {:+} bytes = {:+.2%})".format(change, change / oldsize))
|
/gem5/src/mem/slicc/ast/ |
H A D | FuncCallExprAST.py | 48 # 'format' represents the second argument of the 51 # list following the format specifier. A DPRINTF() 53 # the format specifier. These two cases need to be 59 format = "%s" % (self.exprs[1].inline()) 60 format_length = len(format) 68 dflag, self.exprs[0].location, format[2:format_length-2]) 72 self.exprs[0].location, format[2:format_length-2], 78 format = "%s" % (self.exprs[0].inline()) 79 format_length = len(format) 87 self.exprs[0].location, format[ [all...] |
/gem5/tests/gem5/cpu_tests/ |
H A D | test.py | 61 name='cpu_test_{}_{}'.format(cpu,workload), 64 config_args=['--cpu={}'.format(cpu), binary],
|
/gem5/tests/gem5/test_build/ |
H A D | test_build.py | 49 name = 'build-{isa}-{var}'.format(isa=isa, var=variant)
|
/gem5/src/kern/linux/ |
H A D | printk.cc | 56 bool format = false; local 69 format = true; 103 format = true; 127 if (format) {
|
/gem5/src/arch/generic/ |
H A D | debugfaults.hh | 70 M5DebugFault(const std::string &format, const Args &...args) : argument 71 _message(csprintf(format, args...)) 103 M5DebugOnceFault(const OnceToken &token, const std::string &format, argument 105 M5DebugFault(format, args...), once(lookUpToken<Flavor>(token))
|
/gem5/ext/dsent/model/electrical/router/ |
H A D | RouterSwitchAllocator.cc | 92 createInputPort(String::format("Stage1Arb%d->Request%d", i, j)); 93 createInputPort(String::format("Stage1Arb%d->Grant%d", i, j)); 100 createInputPort(String::format("Stage2Arb%d->Request%d", i, j)); 101 createInputPort(String::format("Stage2Arb%d->Grant%d", i, j)); 159 assignVirtualFanin(dff_in_name, String::format("Stage1Arb%d->Request%d", j, i)); 160 assignVirtualFanout(String::format("Stage1Arb%d->Grant%d", j, i), grant_name); 178 assignVirtualFanin(dff_in_name, String::format("Stage2Arb%d->Request%d", j, i)); 179 assignVirtualFanout(String::format("Stage2Arb%d->Grant%d", j, i), grant_name);
|
/gem5/ext/pybind11/docs/ |
H A D | conf.py | 78 # Else, today_fmt is used as the format for a strftime call. 174 # using the given strftime format. 325 sys.stderr.write("doxygen error code: {}\n".format(-retcode)) 327 sys.stderr.write("doxygen execution failed: {}\n".format(e))
|
/gem5/util/stats/ |
H A D | display.py | 42 format = "%%.%df" % self.precision 44 format = "%.0f" 46 format = "%.0f" 48 format = "%f" 52 value = format % value
|
H A D | print.py | 45 format = "%%.%df" % self.precision 47 format = "%.0f" 49 format = "%.0f" 51 format = "%f" 55 value = format % value
|
/gem5/ext/systemc/src/sysc/tracing/ |
H A D | sc_trace.cpp | 67 void tprintf(sc_trace_file* tf, const char* format, ...) argument 71 va_start(ap, format); 72 (void) vsprintf(buffer, format, ap);
|
/gem5/configs/learning_gem5/part3/ |
H A D | ruby_test.py | 83 print('Exiting @ tick {} because {}'.format(
|