summaryrefslogtreecommitdiff
path: root/base/stats/mysql.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-07-22 23:59:12 -0400
committerNathan Binkert <binkertn@umich.edu>2004-07-22 23:59:12 -0400
commit1987dd82d181f76a4627273dd9345b4141a6b416 (patch)
treeac222bd57e153c36195386a949e5e14a5f474284 /base/stats/mysql.hh
parentc9e6a15196a87fd1aa923b9ee0f6ff736ad6d33b (diff)
downloadgem5-1987dd82d181f76a4627273dd9345b4141a6b416.tar.xz
Stats database fixes to avoid naming conflicts in the database
and to do proper dumping of non-binned stats. base/stats/mysql.cc: have configure return whether or not the stat is a printable stat. This avoids naming problems in the database. don't store non printable stats. dump non-binned stats into the special bin 0 base/stats/mysql.hh: have configure return whether or not the stat is a printable stat. This avoids naming problems in the database. --HG-- extra : convert_revision : e33b115d605226a838eee2e6489e03b8d77ffc02
Diffstat (limited to 'base/stats/mysql.hh')
-rw-r--r--base/stats/mysql.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/stats/mysql.hh b/base/stats/mysql.hh
index fcbe8c5e0..5b6d8a138 100644
--- a/base/stats/mysql.hh
+++ b/base/stats/mysql.hh
@@ -37,6 +37,7 @@
namespace MySQL { class Connection; }
namespace Stats {
+class MainBin;
class DistDataData;
class MySqlRun;
bool MySqlConnected();
@@ -130,7 +131,7 @@ class MySql : public Output
protected:
// Output helper
- void output(const std::string &bin);
+ void output(MainBin *bin);
void output(const DistDataData &data);
void output(const ScalarData &data);
void output(const VectorData &data);
@@ -140,7 +141,7 @@ class MySql : public Output
void output(const FormulaData &data);
void configure();
- void configure(const StatData &data, std::string type);
+ bool configure(const StatData &data, std::string type);
void configure(const ScalarData &data);
void configure(const VectorData &data);
void configure(const DistData &data);