arch,kern,sim: Move the stats in Kernel::Statistics to Workload.
authorGabe Black <gabeblack@google.com>
Fri, 7 Feb 2020 00:22:30 +0000 (16:22 -0800)
committerGabe Black <gabeblack@google.com>
Wed, 17 Jun 2020 19:54:13 +0000 (19:54 +0000)
commit44f787ae9777d8885563d92aa82ab2f9ee56077b
tree56e17f3eb4a128f31988c929a6b72d88d489e0c6
parent9d51dec937906e0acf6cb3210eeac9d25e0be46c
arch,kern,sim: Move the stats in Kernel::Statistics to Workload.

These are the stats in the base class, not in any derived classes. Only
Alpha has an additional stats. These were not really "kernel"
statistics, they were just applicable primarily in FS. They are
potentially applicable to any simulation, but will probably not be
incremented in SE simulations.

Also this merges these stats from being per thread to being per
workload, ie operating system instance. This is probably more relevant
since exactly what thread within a workload runs which particular
instruction is not very important/predictable, but the aggregate
behavior is. If necessary, this could be adjusted in the future to
split things back out again into stats per thread while keeping them
inside the single workload object.

Change-Id: I130e11a9022bdfcadcfb02c7995871503114cd53
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25147
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/sparc/ua2005.cc
src/cpu/thread_context.cc
src/kern/SConscript
src/kern/kernel_stats.cc [deleted file]
src/kern/kernel_stats.hh
src/sim/pseudo_inst.cc
src/sim/workload.hh