diff options
author | Nathan Binkert <binkertn@umich.edu> | 2007-02-21 10:15:17 -0800 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2007-02-21 10:15:17 -0800 |
commit | 3fb3616be4bc68c15aa67df0b93d6b0f790acd16 (patch) | |
tree | 170fe7e85bbaaa8a8424c5cec126a2b4004186d0 /src/base/stats/events.hh | |
parent | 5000c4d878f9bee395a593f450adcf85267e320f (diff) | |
download | gem5-3fb3616be4bc68c15aa67df0b93d6b0f790acd16.tar.xz |
Fix majory brokenness in my previous MySQL commit, basically
this is just a shuffling around of code and fixes to make
stuff commit properly
--HG--
extra : convert_revision : a057f7fe4962cfc6200781ff66d2c26bf9c6eb8c
Diffstat (limited to 'src/base/stats/events.hh')
-rw-r--r-- | src/base/stats/events.hh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/base/stats/events.hh b/src/base/stats/events.hh index dc1408f5b..8ba9cece5 100644 --- a/src/base/stats/events.hh +++ b/src/base/stats/events.hh @@ -42,7 +42,8 @@ extern Tick EventStart; #if USE_MYSQL void __event(const std::string &stat); -bool MySqlConnected(); +#else +inline void __event(const std::string &stat) {} #endif inline void @@ -53,12 +54,7 @@ recordEvent(const std::string &stat) DPRINTF(StatEvents, "Statistics Event: %s\n", stat); -#if USE_MYSQL - if (!MySqlConnected()) - return; - __event(stat); -#endif } /* namespace Stats */ } |