mem-ruby: Move CacheMemory stats used in SLICC to a Stats group
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Fri, 20 Nov 2020 01:45:07 +0000 (17:45 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 22 Dec 2020 09:52:36 +0000 (09:52 +0000)
commit4c42811ff301ccc47d96b3d3630ee9541f6fa7bf
tree2bf71f3c462c4ab516e11c4546e5c95c47ebf745
parent78270ede7be98d78671940b7f0a8e33c6d810164
mem-ruby: Move CacheMemory stats used in SLICC to a Stats group

This change moves some stats that are used in SLICC to a
separate Stats::Group.

In order to use stats in SLICC, new functions are added in
CacheMemory:
        - profileDemandHit()
        - profileDemandMiss()

The functions increase the corresponding stat by 1.

Change-Id: I52b6fefdf6579a49f626f2fca400641f90800017
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/37815
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Tiago Mück <tiago.muck@arm.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
19 files changed:
src/mem/ruby/protocol/GPU_VIPER-TCC.sm
src/mem/ruby/protocol/GPU_VIPER-TCP.sm
src/mem/ruby/protocol/MESI_Three_Level-L0cache.sm
src/mem/ruby/protocol/MESI_Three_Level-L1cache.sm
src/mem/ruby/protocol/MESI_Three_Level_HTM-L0cache.sm
src/mem/ruby/protocol/MESI_Two_Level-L1cache.sm
src/mem/ruby/protocol/MESI_Two_Level-L2cache.sm
src/mem/ruby/protocol/MI_example-cache.sm
src/mem/ruby/protocol/MOESI_AMD_Base-CorePair.sm
src/mem/ruby/protocol/MOESI_AMD_Base-Region-CorePair.sm
src/mem/ruby/protocol/MOESI_AMD_Base-dir.sm
src/mem/ruby/protocol/MOESI_CMP_directory-L1cache.sm
src/mem/ruby/protocol/MOESI_CMP_directory-L2cache.sm
src/mem/ruby/protocol/MOESI_CMP_token-L1cache.sm
src/mem/ruby/protocol/MOESI_CMP_token-L2cache.sm
src/mem/ruby/protocol/MOESI_hammer-cache.sm
src/mem/ruby/protocol/RubySlicc_Types.sm
src/mem/ruby/structures/CacheMemory.cc
src/mem/ruby/structures/CacheMemory.hh