stats: only consider a formula initialized if there is a formula
authorNathan Binkert <nate@binkert.org>
Tue, 15 Jun 2010 08:18:36 +0000 (01:18 -0700)
committerNathan Binkert <nate@binkert.org>
Tue, 15 Jun 2010 08:18:36 +0000 (01:18 -0700)
13 files changed:
src/arch/arm/tlb.cc
src/arch/arm/tlb.hh
src/arch/mips/tlb.cc
src/arch/mips/tlb.hh
src/arch/power/tlb.cc
src/arch/power/tlb.hh
src/base/statistics.cc
src/dev/etherdevice.cc
src/dev/ide_disk.hh
src/mem/cache/base.hh
tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/config.ini
tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/simout
tests/quick/80.netperf-stream/ref/alpha/linux/twosys-tsunami-simple-atomic/stats.txt

index f0e40f69025c788c034007e2f58c0bee9aca190c..9cc00a89ea6a3a0d836476650b7793cf08b35220 100644 (file)
@@ -282,11 +282,6 @@ TLB::regStats()
         .desc("DTB misses")
         ;
 
-    invalids
-        .name(name() + ".invalids")
-        .desc("DTB access violations")
-        ;
-
     accesses
         .name(name() + ".accesses")
         .desc("DTB accesses")
index a779a492d6fafc41675c32a9b7206fe273845f36..1bddd8497a516b0338004e06b47fe27dc303b3af 100644 (file)
@@ -108,7 +108,6 @@ class TLB : public BaseTLB
     mutable Stats::Scalar write_accesses;
     Stats::Formula hits;
     Stats::Formula misses;
-    Stats::Formula invalids;
     Stats::Formula accesses;
 
 
index e01c06ae5a8ebbbda699666f6dee74b3c304a886..cf123074550d10f0fe62a38dde393eb047937728 100644 (file)
@@ -281,11 +281,6 @@ TLB::regStats()
         .desc("DTB misses")
         ;
 
-    invalids
-        .name(name() + ".invalids")
-        .desc("DTB access violations")
-        ;
-
     accesses
         .name(name() + ".accesses")
         .desc("DTB accesses")
index 68b1c0c75658b3da2ecc2997c5537cfdb79049df..e301cf666a56db9e9a4a1d57c7344dbeb6ccceb1 100644 (file)
@@ -105,7 +105,6 @@ class TLB : public BaseTLB
     mutable Stats::Scalar write_accesses;
     Stats::Formula hits;
     Stats::Formula misses;
-    Stats::Formula invalids;
     Stats::Formula accesses;
 
   public:
index 292f13078697349f790e466f7ff462d26612230d..a0ff693913b434ca5de40570185eada5ea0b673e 100644 (file)
@@ -265,11 +265,6 @@ TLB::regStats()
         .desc("DTB misses")
         ;
 
-    invalids
-        .name(name() + ".invalids")
-        .desc("DTB access violations")
-        ;
-
     accesses
         .name(name() + ".accesses")
         .desc("DTB accesses")
index 1794de62642b2b24c5c46559304d1c550ec82d30..4445995fcd2c73aedbef61fa384acb9c4926cbe4 100644 (file)
@@ -123,7 +123,6 @@ class TLB : public BaseTLB
     mutable Stats::Scalar write_accesses;
     Stats::Formula hits;
     Stats::Formula misses;
-    Stats::Formula invalids;
     Stats::Formula accesses;
 
   public:
index 59013ed34483367d4dfa67f2e2a06a1483608fe8..ab351567c75c417c86f7c54b3733a5f312cde3aa 100644 (file)
@@ -238,12 +238,12 @@ Vector2dInfo::enable()
 
 Formula::Formula()
 {
-    setInit();
 }
 
 Formula::Formula(Temp r)
 {
     root = r;
+    setInit();
     assert(size());
 }
 
@@ -252,6 +252,7 @@ Formula::operator=(Temp r)
 {
     assert(!root && "Can't change formulas");
     root = r;
+    setInit();
     assert(size());
     return *this;
 }
@@ -261,8 +262,11 @@ Formula::operator+=(Temp r)
 {
     if (root)
         root = NodePtr(new BinaryNode<std::plus<Result> >(root, r));
-    else
+    else {
         root = r;
+        setInit();
+    }
+
     assert(size());
     return *this;
 }
index 5341c02c446076d52e1d52b9e3c5313ba910b552..59febcdc508d1e9ef3617aa5dcc3551954f05918 100644 (file)
@@ -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;
 }
index 1b455e8ad3ba2f1f1718b9ef72ed527106ec1104..78a9e1fe7ba05fb943ddc47df75a4f8b4f28cb32 100644 (file)
@@ -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;
index 62e8ae1260be222414902871d8705a4646b4aec9..2f1088609df8ed3d98b4d9c1ac58ae39b13cc931 100644 (file)
@@ -324,12 +324,14 @@ class BaseCache : public MemObject
     /** Total cycle latency of overall MSHR misses. */
     Stats::Formula overallMshrUncacheableLatency;
 
+#if 0
     /** The total number of MSHR accesses per command and thread. */
     Stats::Formula mshrAccesses[MemCmd::NUM_MEM_CMDS];
     /** The total number of demand MSHR accesses. */
     Stats::Formula demandMshrAccesses;
     /** The total number of MSHR accesses. */
     Stats::Formula overallMshrAccesses;
+#endif
 
     /** The miss rate in the MSHRs pre command and thread. */
     Stats::Formula mshrMissRate[MemCmd::NUM_MEM_CMDS];
index 83f000f15124983fd5567eccbf17174e60859b8b..f9d319b05b519772d273db79afa19222392631f4 100644 (file)
@@ -8,13 +8,13 @@ type=LinuxAlphaSystem
 children=bridge cpu disk0 disk2 intrctrl iobus membus physmem simple_disk terminal tsunami
 boot_cpu_frequency=1
 boot_osflags=root=/dev/hda1 console=ttyS0
-console=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/console
+console=/dist/m5/system/binaries/console
 init_param=0
-kernel=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/vmlinux
+kernel=/dist/m5/system/binaries/vmlinux
 mem_mode=atomic
-pal=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/ts_osfpal
+pal=/dist/m5/system/binaries/ts_osfpal
 physmem=drivesys.physmem
-readfile=/proj/aatl_perfmod_arch/users/lihsu/m5/m5/configs/boot/netperf-server.rcS
+readfile=/n/blue/z/binkert/work/m5/work/configs/boot/netperf-server.rcS
 symbolfile=
 system_rev=1024
 system_type=34
@@ -95,7 +95,7 @@ table_size=65536
 
 [drivesys.disk0.image.child]
 type=RawDiskImage
-image_file=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/disks/linux-latest.img
+image_file=/dist/m5/system/disks/linux-latest.img
 read_only=true
 
 [drivesys.disk2]
@@ -115,7 +115,7 @@ table_size=65536
 
 [drivesys.disk2.image.child]
 type=RawDiskImage
-image_file=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/disks/linux-bigswap2.img
+image_file=/dist/m5/system/disks/linux-bigswap2.img
 read_only=true
 
 [drivesys.intrctrl]
@@ -179,7 +179,7 @@ system=drivesys
 
 [drivesys.simple_disk.disk]
 type=RawDiskImage
-image_file=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/disks/linux-latest.img
+image_file=/dist/m5/system/disks/linux-latest.img
 read_only=true
 
 [drivesys.terminal]
@@ -712,13 +712,13 @@ type=LinuxAlphaSystem
 children=bridge cpu disk0 disk2 intrctrl iobus membus physmem simple_disk terminal tsunami
 boot_cpu_frequency=1
 boot_osflags=root=/dev/hda1 console=ttyS0
-console=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/console
+console=/dist/m5/system/binaries/console
 init_param=0
-kernel=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/vmlinux
+kernel=/dist/m5/system/binaries/vmlinux
 mem_mode=atomic
-pal=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/ts_osfpal
+pal=/dist/m5/system/binaries/ts_osfpal
 physmem=testsys.physmem
-readfile=/proj/aatl_perfmod_arch/users/lihsu/m5/m5/configs/boot/netperf-stream-client.rcS
+readfile=/n/blue/z/binkert/work/m5/work/configs/boot/netperf-stream-client.rcS
 symbolfile=
 system_rev=1024
 system_type=34
@@ -799,7 +799,7 @@ table_size=65536
 
 [testsys.disk0.image.child]
 type=RawDiskImage
-image_file=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/disks/linux-latest.img
+image_file=/dist/m5/system/disks/linux-latest.img
 read_only=true
 
 [testsys.disk2]
@@ -819,7 +819,7 @@ table_size=65536
 
 [testsys.disk2.image.child]
 type=RawDiskImage
-image_file=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/disks/linux-bigswap2.img
+image_file=/dist/m5/system/disks/linux-bigswap2.img
 read_only=true
 
 [testsys.intrctrl]
@@ -883,7 +883,7 @@ system=testsys
 
 [testsys.simple_disk.disk]
 type=RawDiskImage
-image_file=/proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/disks/linux-latest.img
+image_file=/dist/m5/system/disks/linux-latest.img
 read_only=true
 
 [testsys.terminal]
index 3d53e8197a8ab62855012d321b850a2e0d2f7dec..749055d7f29897fd542900904142cafa4dd3bda3 100755 (executable)
@@ -5,13 +5,13 @@ The Regents of The University of Michigan
 All Rights Reserved
 
 
-M5 compiled Feb 24 2010 23:13:04
-M5 revision 1a33ca29ec29 6980 default share-aware-test-update.patch tip qtip
-M5 started Feb 24 2010 23:13:12
-M5 executing on SC2B0619
-command line: build/ALPHA_FS/m5.fast -d build/ALPHA_FS/tests/fast/quick/80.netperf-stream/alpha/linux/twosys-tsunami-simple-atomic -re tests/run.py build/ALPHA_FS/tests/fast/quick/80.netperf-stream/alpha/linux/twosys-tsunami-simple-atomic
+M5 compiled Jun 14 2010 18:16:48
+M5 revision 22c414a5ff89+ 7455+ default stats_funcinit.diff qtip tip
+M5 started Jun 14 2010 18:19:53
+M5 executing on maize
+command line: /n/blue/z/binkert/build/work/build/ALPHA_FS/m5.fast -d /n/blue/z/binkert/build/work/build/ALPHA_FS/tests/fast/quick/80.netperf-stream/alpha/linux/twosys-tsunami-simple-atomic -re tests/run.py /n/blue/z/binkert/build/work/build/ALPHA_FS/tests/fast/quick/80.netperf-stream/alpha/linux/twosys-tsunami-simple-atomic
 Global frequency set at 1000000000000 ticks per second
-info: kernel located at: /proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/vmlinux
-info: kernel located at: /proj/aatl_perfmod_arch/m5_system_files/m5_system_2.0b3/binaries/vmlinux
+info: kernel located at: /dist/m5/system/binaries/vmlinux
+info: kernel located at: /dist/m5/system/binaries/vmlinux
 info: Entering event queue @ 0.  Starting simulation...
 Exiting @ tick 4300236804024 because checkpoint
index 72190af468bf2b8b6538eec7f47b3e57417a9812..f998eb9757e795add531c421f21d7f8330e08960 100644 (file)
@@ -139,6 +139,7 @@ drivesys.tsunami.ethernet.rxTcpChecksums            8                       # Nu
 drivesys.tsunami.ethernet.rxUdpChecksums            0                       # Number of rx UDP Checksums done by device
 drivesys.tsunami.ethernet.totBandwidth          70320                       # Total Bandwidth (bits/s)
 drivesys.tsunami.ethernet.totBytes               1758                       # Total Bytes
+drivesys.tsunami.ethernet.totPPS                   65                       # Total Tranmission Rate (packets/s)
 drivesys.tsunami.ethernet.totPackets               13                       # Total Packets
 drivesys.tsunami.ethernet.totalRxDesc               8                       # total number of RxDesc written to ISR
 drivesys.tsunami.ethernet.totalRxIdle               0                       # total number of RxIdle written to ISR
@@ -155,10 +156,10 @@ drivesys.tsunami.ethernet.txPPS                    25                       # Pa
 drivesys.tsunami.ethernet.txPackets                 5                       # Number of Packets Transmitted
 drivesys.tsunami.ethernet.txTcpChecksums            2                       # Number of tx TCP Checksums done by device
 drivesys.tsunami.ethernet.txUdpChecksums            0                       # Number of tx UDP Checksums done by device
-host_inst_rate                               70382622                       # Simulator instruction rate (inst/s)
-host_mem_usage                                 464660                       # Number of bytes of host memory used
-host_seconds                                     3.88                       # Real time elapsed on the host
-host_tick_rate                            51489346502                       # Simulator tick rate (ticks/s)
+host_inst_rate                              296969022                       # Simulator instruction rate (inst/s)
+host_mem_usage                                 463340                       # Number of bytes of host memory used
+host_seconds                                     0.92                       # Real time elapsed on the host
+host_tick_rate                           217224993666                       # Simulator tick rate (ticks/s)
 sim_freq                                 1000000000000                       # Frequency of simulated ticks
 sim_insts                                   273374833                       # Number of instructions simulated
 sim_seconds                                  0.200001                       # Number of seconds simulated
@@ -312,6 +313,7 @@ testsys.tsunami.ethernet.rxTcpChecksums             5                       # Nu
 testsys.tsunami.ethernet.rxUdpChecksums             0                       # Number of rx UDP Checksums done by device
 testsys.tsunami.ethernet.totBandwidth           70320                       # Total Bandwidth (bits/s)
 testsys.tsunami.ethernet.totBytes                1758                       # Total Bytes
+testsys.tsunami.ethernet.totPPS                    65                       # Total Tranmission Rate (packets/s)
 testsys.tsunami.ethernet.totPackets                13                       # Total Packets
 testsys.tsunami.ethernet.totalRxDesc                5                       # total number of RxDesc written to ISR
 testsys.tsunami.ethernet.totalRxIdle                0                       # total number of RxIdle written to ISR
@@ -429,10 +431,10 @@ drivesys.tsunami.ethernet.totalSwi                  0                       # to
 drivesys.tsunami.ethernet.totalTxDesc               0                       # total number of TxDesc written to ISR
 drivesys.tsunami.ethernet.totalTxIdle               0                       # total number of TxIdle written to ISR
 drivesys.tsunami.ethernet.totalTxOk                 0                       # total number of TxOk written to ISR
-host_inst_rate                           166997454490                       # Simulator instruction rate (inst/s)
-host_mem_usage                                 464660                       # Number of bytes of host memory used
+host_inst_rate                           197240139250                       # Simulator instruction rate (inst/s)
+host_mem_usage                                 463340                       # Number of bytes of host memory used
 host_seconds                                     0.00                       # Real time elapsed on the host
-host_tick_rate                              453274510                       # Simulator tick rate (ticks/s)
+host_tick_rate                              532144888                       # Simulator tick rate (ticks/s)
 sim_freq                                 1000000000000                       # Frequency of simulated ticks
 sim_insts                                   273374833                       # Number of instructions simulated
 sim_seconds                                  0.000001                       # Number of seconds simulated