31 #include "pybind11/pybind11.h"
45 namespace py = pybind11;
49 "import m5.stattestmain",
50 "m5.stattestmain.main()",
55 using namespace Stats;
140 .desc(
"this is statistic 1")
145 .desc(
"this is statistic 2")
151 .desc(
"this is statistic 3")
157 .desc(
"this is statistic 4")
164 .desc(
"this is statistic 5")
176 .desc(
"this is statistic 6")
183 .desc(
"this is statistic 7")
192 .desc(
"this is statistic 8")
200 .desc(
"this is statistic 9")
207 .desc(
"this is statistic 10")
214 .desc(
"this is statistic 12")
220 .desc(
"this is statistic 13")
226 .desc(
"this is statistic 14")
232 .desc(
"this is statistic 15")
238 .desc(
"this is statistic 16")
249 .desc(
"this is stat 17")
256 .desc(
"this is stat 18")
262 .desc(
"this is histogram 1")
268 .desc(
"this is histogram 2")
274 .desc(
"this is histogram 3")
280 .desc(
"this is histogram 4")
286 .desc(
"this is histogram 5")
292 .desc(
"this is histogram 6")
298 .desc(
"this is histogram 7")
304 .desc(
"this is histogram 8")
310 .desc(
"this is histogram 9")
316 .desc(
"this is histogram 10")
322 .desc(
"this is histogram 11")
328 .desc(
"this is histogram 12")
333 .name(
"SparseHistogram1")
334 .desc(
"this is sparse histogram 1")
339 .desc(
"this is formula 1")
345 .desc(
"this is formula 2")
352 .desc(
"this is formula 3")
363 .desc(
"this is formula 4")
369 .desc(
"this is statistic 19 for vector op testing")
375 .desc(
"this is statistic 20 for vector op testing")
380 .name(
"vector_op_test_formula")
381 .desc(
"The total stat should equal 1")
386 f2 = (-s1) / (-s2) * (-s3 +
ULL(100) + s4);
422 s10.sample(1000000000);
634 for (
int i = 0;
i < 100;
i++) {
639 for (
int i = -100;
i < 100;
i++) {
644 for (
int i = -100;
i < 1000;
i++) {
649 for (
int i = 100;
i >= -1000;
i--) {
654 for (
int i = 0;
i <= 1023;
i++) {
659 for (
int i = -1024;
i <= 1023;
i++) {
664 for (
int i = 0;
i < 1000;
i++) {
678 py::module
m = m_internal.def_submodule(
"stattest");
const FlagsType pdf
Print the percent of the total that this entry represents.
VectorAverageDeviation s15
EventQueue * getEventQueue(uint32_t index)
Function for returning eventq queue for the provided index.
A stat that calculates the per tick average of a value.
const FlagsType nonan
Don't print if this is NAN.
void setCurTick(Tick newVal)
A vector of scalar stats.
A vector of distributions.
const char * m5MainCommands[]
Declaration of Statistics objects.
This is a simple scalar statistic, like a counter.
This is a vector of AverageDeviation stats.
Calculates the mean and variance of all the samples.
static void stattest_init_pybind(py::module &m_internal)
Tick curTick()
The current simulated tick.
Queue of events sorted in time order.
A simple distribution stat.
static EmbeddedPyBind embed_("stattest", stattest_init_pybind)
EventQueue * curEventQueue()
Calculates the per tick mean and variance of the samples.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
VectorStandardDeviation s14
#define ULL(N)
uint64_t constant
const FlagsType total
Print the total.
A vector of Average stats.
A 2-Dimensional vecto of scalar stats.
This is a vector of StandardDeviation stats.
const FlagsType nozero
Don't print if this is zero.
const FlagsType init
This Stat is Initialized.
void cprintf(const char *format, const Args &...args)