summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-15 08:34:19 -0700
committerNathan Binkert <nate@binkert.org>2010-06-15 08:34:19 -0700
commite54b673315ac9f0d0a96a5d92f33a34d1a3bc110 (patch)
tree12519170ca7a55224f4905e8aa6501d8e019d0cd /src/base
parent86a93fe7b9576045b5e085965ec85692379823e7 (diff)
downloadgem5-e54b673315ac9f0d0a96a5d92f33a34d1a3bc110.tar.xz
stats: rename print to display so it work in python
Diffstat (limited to 'src/base')
-rw-r--r--src/base/statistics.cc4
-rw-r--r--src/base/statistics.hh2
-rw-r--r--src/base/stats/info.hh4
-rw-r--r--src/base/stats/text.cc2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/base/statistics.cc b/src/base/statistics.cc
index ab351567c..853f3a58d 100644
--- a/src/base/statistics.cc
+++ b/src/base/statistics.cc
@@ -192,7 +192,7 @@ Info::baseCheck() const
return false;
}
- if ((flags & print) && name.empty()) {
+ if ((flags & display) && name.empty()) {
panic("all printable stats must be named");
return false;
}
@@ -331,7 +331,7 @@ enable()
off_t j = 0;
for (i = statsList().begin(); i != end; ++i) {
Info *info = *i;
- if (!(info->flags & print))
+ if (!(info->flags & display))
info->name = "__Stat" + to_string(j++);
}
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index f7625779a..37bb1b90b 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -245,7 +245,7 @@ class DataWrap : public InfoAccess
{
Info *info = this->info();
info->setName(name);
- info->flags.set(print);
+ info->flags.set(display);
return this->self();
}
const std::string &name() const { return this->info()->name; }
diff --git a/src/base/stats/info.hh b/src/base/stats/info.hh
index 85a0df447..4987fa810 100644
--- a/src/base/stats/info.hh
+++ b/src/base/stats/info.hh
@@ -44,7 +44,7 @@ const FlagsType none = 0x0000;
/** This Stat is Initialized */
const FlagsType init = 0x0001;
/** Print this stat. */
-const FlagsType print = 0x0002;
+const FlagsType display = 0x0002;
/** Print the total. */
const FlagsType total = 0x0010;
/** Print the percent of the total that this entry represents. */
@@ -59,7 +59,7 @@ const FlagsType nozero = 0x0100;
const FlagsType nonan = 0x0200;
/** Mask of flags that can't be set directly */
-const FlagsType __reserved = init | print;
+const FlagsType __reserved = init | display;
struct StorageParams
{
diff --git a/src/base/stats/text.cc b/src/base/stats/text.cc
index 090ddff7d..f3c4d1c58 100644
--- a/src/base/stats/text.cc
+++ b/src/base/stats/text.cc
@@ -151,7 +151,7 @@ Text::output()
bool
Text::noOutput(const Info &info)
{
- if (!info.flags.isSet(print))
+ if (!info.flags.isSet(display))
return true;
if (info.prereq && info.prereq->zero())