diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-05-12 18:16:07 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-05-12 18:16:07 -0400 |
commit | 03a00e5d32411f467735b2af890c1ca54930e949 (patch) | |
tree | 4154e4703c0c3e18bd4d6b4de98fe8650d6f704d /dev/ide_disk.hh | |
parent | a91ee5abc2275709871b016d43ca2d2440fa5000 (diff) | |
parent | 7929b9ee19b6fabc7e69b704fa07fdb6daa35c70 (diff) | |
download | gem5-03a00e5d32411f467735b2af890c1ca54930e949.tar.xz |
Merge zeep.pool:/z/saidi/work/m5.head
into zeep.pool:/z/saidi/work/m5.nm_m5_pull
SConscript:
dram memory needs to be converted to newmem before we can use it
dev/ide_ctrl.cc:
don't need this printing in newmem
dev/ide_disk.cc:
will read stats in next commit
dev/sinic.cc:
merge sinic from head, still needs work
--HG--
extra : convert_revision : b9aabd8c7814d07d54ce6f971aad3ec349fa24e1
Diffstat (limited to 'dev/ide_disk.hh')
-rw-r--r-- | dev/ide_disk.hh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dev/ide_disk.hh b/dev/ide_disk.hh index 3d67abece..891c462b5 100644 --- a/dev/ide_disk.hh +++ b/dev/ide_disk.hh @@ -33,6 +33,7 @@ #ifndef __IDE_DISK_HH__ #define __IDE_DISK_HH__ +#include "base/statistics.hh" #include "dev/disk_image.hh" #include "dev/ide_atareg.h" #include "dev/ide_ctrl.hh" @@ -231,6 +232,13 @@ class IdeDisk : public SimObject /** Interrupt pending */ bool intrPending; + Stats::Scalar<> dmaReadFullPages; + Stats::Scalar<> dmaReadBytes; + Stats::Scalar<> dmaReadTxs; + Stats::Scalar<> dmaWriteFullPages; + Stats::Scalar<> dmaWriteBytes; + Stats::Scalar<> dmaWriteTxs; + public: /** * Create and initialize this Disk. @@ -252,6 +260,12 @@ class IdeDisk : public SimObject void reset(int id); /** + * Register statistics. + */ + void regStats(); + + + /** * Set the controller for this device * @param c The IDE controller */ |