summaryrefslogtreecommitdiff
path: root/src/arch/alpha/kernel_stats.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-08-25 18:02:01 -0700
committerGabe Black <gabeblack@google.com>2017-09-11 04:59:01 +0000
commita50bcfb436da42dbd6005da681ed91bb768684f4 (patch)
tree4a8e021bc59cd0d3dba43939e035bfac67d089bf /src/arch/alpha/kernel_stats.hh
parentb9d8700a38ccecfbe97c152bc9fc3b7c3b09e9a2 (diff)
downloadgem5-a50bcfb436da42dbd6005da681ed91bb768684f4.tar.xz
stats: Move the swpipl function into the Alpha kernel stats.
This stat is only incremented by Alpha. Also move the _hwrei into the Alpha stats object since it's the class that actually sets up and maintains that value and it probably should have been there all along. Change-Id: Ibd038a33230c01432c160490926d8e1e55f8ccb0 Reviewed-on: https://gem5-review.googlesource.com/4601 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/alpha/kernel_stats.hh')
-rw-r--r--src/arch/alpha/kernel_stats.hh13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/arch/alpha/kernel_stats.hh b/src/arch/alpha/kernel_stats.hh
index 3b2b5a0c0..1bedeb0e6 100644
--- a/src/arch/alpha/kernel_stats.hh
+++ b/src/arch/alpha/kernel_stats.hh
@@ -59,7 +59,8 @@ class Statistics : public ::Kernel::Statistics
private:
Stats::Vector _callpal;
-// Stats::Vector _faults;
+
+ Stats::Scalar _hwrei;
Stats::Vector _mode;
Stats::Vector _modeGood;
@@ -68,6 +69,15 @@ class Statistics : public ::Kernel::Statistics
Stats::Scalar _swap_context;
+ Stats::Vector _iplCount;
+ Stats::Vector _iplGood;
+ Stats::Vector _iplTicks;
+ Stats::Formula _iplUsed;
+
+ private:
+ int iplLast;
+ Tick iplLastTick;
+
public:
Statistics();
@@ -78,6 +88,7 @@ class Statistics : public ::Kernel::Statistics
void context(Addr oldpcbb, Addr newpcbb, ThreadContext *tc);
void callpal(int code, ThreadContext *tc);
void hwrei() { _hwrei++; }
+ void swpipl(int ipl);
void setIdleProcess(Addr idle, ThreadContext *tc);