summaryrefslogtreecommitdiff
path: root/src/dev
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-15 01:18:36 -0700
committerNathan Binkert <nate@binkert.org>2010-06-15 01:18:36 -0700
commit86a93fe7b9576045b5e085965ec85692379823e7 (patch)
treeb6132ca65b7a1374212609b1904a316cbad90616 /src/dev
parent54d813adcaf6d5eda4040c20bae1706b0a78324b (diff)
downloadgem5-86a93fe7b9576045b5e085965ec85692379823e7.tar.xz
stats: only consider a formula initialized if there is a formula
Diffstat (limited to 'src/dev')
-rw-r--r--src/dev/etherdevice.cc3
-rw-r--r--src/dev/ide_disk.hh4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/dev/etherdevice.cc b/src/dev/etherdevice.cc
index 5341c02c4..59febcdc5 100644
--- a/src/dev/etherdevice.cc
+++ b/src/dev/etherdevice.cc
@@ -119,7 +119,7 @@ EtherDevice::regStats()
.precision(0)
;
- descDmaWrBytes
+ descDmaWrBytes
.name(name() + ".descDmaWriteBytes")
.desc("number of descriptor bytes write w/ DMA")
.precision(0)
@@ -364,4 +364,5 @@ EtherDevice::regStats()
txPacketRate = txPackets / simSeconds;
rxPacketRate = rxPackets / simSeconds;
+ totPacketRate = totPackets / simSeconds;
}
diff --git a/src/dev/ide_disk.hh b/src/dev/ide_disk.hh
index 1b455e8ad..78a9e1fe7 100644
--- a/src/dev/ide_disk.hh
+++ b/src/dev/ide_disk.hh
@@ -244,10 +244,6 @@ class IdeDisk : public SimObject
Stats::Scalar dmaWriteFullPages;
Stats::Scalar dmaWriteBytes;
Stats::Scalar dmaWriteTxs;
- Stats::Formula rdBandwidth;
- Stats::Formula wrBandwidth;
- Stats::Formula totBandwidth;
- Stats::Formula totBytes;
public:
typedef IdeDiskParams Params;