From 74bdd087f9e567aea77b3f5b15f05b13fc05fc1c Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Sat, 27 Aug 2022 09:26:51 -0700 Subject: [PATCH] configs: Fix stat names after switchable changes b6e0e72d9 changed the names of the switchable processor cores. This change updates the stats after the nightlies failed. Change-Id: If349ff07dea08ad3999e02ee95da389bab903b3e Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/62791 Reviewed-by: Bobby Bruce Maintainer: Bobby Bruce Maintainer: Jason Lowe-Power Tested-by: kokoro --- configs/example/gem5_library/x86-gapbs-benchmarks.py | 4 ++-- configs/example/gem5_library/x86-npb-benchmarks.py | 4 ++-- configs/example/gem5_library/x86-parsec-benchmarks.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/example/gem5_library/x86-gapbs-benchmarks.py b/configs/example/gem5_library/x86-gapbs-benchmarks.py index 5dff8da749..407881111d 100644 --- a/configs/example/gem5_library/x86-gapbs-benchmarks.py +++ b/configs/example/gem5_library/x86-gapbs-benchmarks.py @@ -291,11 +291,11 @@ gem5stats = get_simstat(root) # sum and print them at the end. roi_insts = float( - gem5stats.to_json()["system"]["processor"]["cores2"]["core"][ + gem5stats.to_json()["system"]["processor"]["switch0"]["core"][ "exec_context.thread_0" ]["numInsts"]["value"] ) + float( - gem5stats.to_json()["system"]["processor"]["cores3"]["core"][ + gem5stats.to_json()["system"]["processor"]["switch1"]["core"][ "exec_context.thread_0" ]["numInsts"]["value"] ) diff --git a/configs/example/gem5_library/x86-npb-benchmarks.py b/configs/example/gem5_library/x86-npb-benchmarks.py index 2e74598557..b3a78c2909 100644 --- a/configs/example/gem5_library/x86-npb-benchmarks.py +++ b/configs/example/gem5_library/x86-npb-benchmarks.py @@ -309,11 +309,11 @@ gem5stats = get_simstat(root) # cores. We then sum and print them at the end. roi_insts = float( - gem5stats.to_json()["system"]["processor"]["cores2"]["core"][ + gem5stats.to_json()["system"]["processor"]["switch0"]["core"][ "exec_context.thread_0" ]["numInsts"]["value"] ) + float( - gem5stats.to_json()["system"]["processor"]["cores3"]["core"][ + gem5stats.to_json()["system"]["processor"]["switch1"]["core"][ "exec_context.thread_0" ]["numInsts"]["value"] ) diff --git a/configs/example/gem5_library/x86-parsec-benchmarks.py b/configs/example/gem5_library/x86-parsec-benchmarks.py index a071612bc8..08fa636f1e 100644 --- a/configs/example/gem5_library/x86-parsec-benchmarks.py +++ b/configs/example/gem5_library/x86-parsec-benchmarks.py @@ -279,11 +279,11 @@ gem5stats = get_simstat(root) # We get the number of committed instructions from the timing # cores. We then sum and print them at the end. roi_insts = float( - gem5stats.to_json()["system"]["processor"]["cores2"]["core"][ + gem5stats.to_json()["system"]["processor"]["switch0"]["core"][ "exec_context.thread_0" ]["numInsts"]["value"] ) + float( - gem5stats.to_json()["system"]["processor"]["cores3"]["core"][ + gem5stats.to_json()["system"]["processor"]["switch1"]["core"][ "exec_context.thread_0" ]["numInsts"]["value"] )