mem-cache: Switch to new-style stats
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 23 Sep 2019 17:16:26 +0000 (18:16 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 30 Sep 2019 12:34:06 +0000 (12:34 +0000)
commit0d98a7170f50d07d737a6a78e32e6ac3021262ec
treea25acfd243a7fbfbe68063237a354d89e4909836
parent76384ec3ff2a52898aa35a27d337194ae557648a
mem-cache: Switch to new-style stats

This change puts cache and tag stats into a Stats::Group struct. This
makes it easier to identify stat updates (they are prefixed with
stat.) and adds hierarchy information for output formats that need it.

Change-Id: I2b8e9138f1cb977abb445ec864d80a79b588481d
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21140
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/cache/base.cc
src/mem/cache/base.hh
src/mem/cache/cache.cc
src/mem/cache/noncoherent_cache.cc
src/mem/cache/tags/base.cc
src/mem/cache/tags/base.hh
src/mem/cache/tags/base_set_assoc.cc
src/mem/cache/tags/base_set_assoc.hh
src/mem/cache/tags/fa_lru.cc
src/mem/cache/tags/sector_tags.cc