changeset 8bdcec97b36b in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=8bdcec97b36b description: stats: fix stat test from curTick change
diffstat: src/unittest/stattest.cc | 37 +++++++++++++++++++------------------ 1 files changed, 19 insertions(+), 18 deletions(-) diffs (104 lines): diff -r 9069448c4fbc -r 8bdcec97b36b src/unittest/stattest.cc --- a/src/unittest/stattest.cc Mon Jan 10 11:11:16 2011 -0800 +++ b/src/unittest/stattest.cc Mon Jan 10 11:11:17 2011 -0800 @@ -38,6 +38,7 @@ #include "base/stats/text.hh" #include "base/stats/mysql.hh" #include "base/types.hh" +#include "sim/core.hh" #include "sim/stat_control.hh" using namespace std; @@ -332,7 +333,7 @@ s15[9].sample(1234); s10.sample(1000000000); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s10.sample(100000); s10.sample(100000); s10.sample(100000); @@ -407,50 +408,50 @@ s15[0].sample(1234); s15[1].sample(4134); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[4].sample(1213); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[3].sample(1124); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[2].sample(1243); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[7].sample(1244); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[4].sample(7234); s15[2].sample(9234); s15[3].sample(1764); s15[7].sample(1564); s15[3].sample(3234); s15[1].sample(2234); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[5].sample(1234); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[9].sample(4334); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[2].sample(1234); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[4].sample(4334); s15[6].sample(1234); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[8].sample(8734); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[1].sample(5234); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[3].sample(8234); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[7].sample(5234); s15[4].sample(4434); s15[3].sample(7234); s15[2].sample(1934); s15[1].sample(9234); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[5].sample(5634); s15[3].sample(1264); s15[7].sample(5223); s15[0].sample(1234); s15[0].sample(5434); s15[3].sample(8634); - curTick() += ULL(1000000); + curTick(curTick() + ULL(1000000)); s15[1].sample(1234); s4 = curTick(); @@ -459,7 +460,7 @@ s3 = 12; s3++; - curTick() += 9; + curTick(curTick() + 9); s1 = 9; s1 += 9; @@ -534,7 +535,7 @@ s9.sample(10); s9.sample(10); - curTick() += 9; + curTick(curTick() + 9); s4 = curTick(); s6.sample(100); s6.sample(100); _______________________________________________ m5-dev mailing list m5-dev@m5sim.org http://m5sim.org/mailman/listinfo/m5-dev