diff options
author | Kevin Lim <ktlim@umich.edu> | 2005-01-21 18:31:30 -0500 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2005-01-21 18:31:30 -0500 |
commit | e6b99b07684ca465d83a6d9858fe97a1d5a8177f (patch) | |
tree | eb77f23c2c71fd6b8128a945ca1282f2676ea8f0 /dev/sinic.cc | |
parent | 6ac7954242abf87252b2927c213e9e95bb0772ce (diff) | |
parent | fa7fa5a90909b79a97aee187aa1de52d96c9dde1 (diff) | |
download | gem5-e6b99b07684ca465d83a6d9858fe97a1d5a8177f.tar.xz |
Merge zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5-patched/m5-new
--HG--
extra : convert_revision : e802c800a478c297d3aa780a9ea3c6701453d91d
Diffstat (limited to 'dev/sinic.cc')
-rw-r--r-- | dev/sinic.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/dev/sinic.cc b/dev/sinic.cc index 56782b589..fa4cd570f 100644 --- a/dev/sinic.cc +++ b/dev/sinic.cc @@ -191,6 +191,34 @@ Device::regStats() .prereq(rxBytes) ; + totBandwidth + .name(name() + ".totBandwidth") + .desc("Total Bandwidth (bits/s)") + .precision(0) + .prereq(totBytes) + ; + + totPackets + .name(name() + ".totPackets") + .desc("Total Packets") + .precision(0) + .prereq(totBytes) + ; + + totBytes + .name(name() + ".totBytes") + .desc("Total Bytes") + .precision(0) + .prereq(totBytes) + ; + + totPacketRate + .name(name() + ".totPPS") + .desc("Total Tranmission Rate (packets/s)") + .precision(0) + .prereq(totBytes) + ; + txBytes .name(name() + ".txBytes") .desc("Bytes Transmitted") @@ -258,6 +286,9 @@ Device::regStats() txBandwidth = txBytes * Stats::constant(8) / simSeconds; rxBandwidth = rxBytes * Stats::constant(8) / simSeconds; + totBandwidth = txBandwidth + rxBandwidth; + totBytes = txBytes + rxBytes; + totPackets = txPackets + rxPackets; txPacketRate = txPackets / simSeconds; rxPacketRate = rxPackets / simSeconds; } |