Add `--pmu-dump-stats-on <event>` and `--pmu-reset-stats-on <event>` options to the Arm `baremetal.py` config to optionally dump and/or reset stats on various PMU events. These options allow the user to specify which PMU events should cause the dumping or resetting of gem5 stats. The available `<event>`s are PMU `enable`, `disable`, `reset`, and `interrupt`. Both these CLI options may be specified multiple times to enable more than one event to cause a stats dump/reset if desired. Stats are dumped before they are reset. These options are useful for sampled simulation workloads (e.g. SimPoints) which are controlled by the PMU. Change-Id: Ie2ffe11c6aa1f3a57a58425ccec3681c780065c8 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/69959 Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
15 KiB
15 KiB