gem5-dev@gem5.org

The gem5 Developer List

View all threads

[XS] Change in gem5/gem5[release-staging-v23-0]: tests: Reducing json stat dump size.

MS
Mahyar Samani (Gerrit)
Thu, Jun 8, 2023 10:01 PM

Mahyar Samani has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/71402?usp=email )

Change subject: tests: Reducing json stat dump size.
......................................................................

tests: Reducing json stat dump size.

This change reduces the number of stats dumped as json in
traffic_gen tests.

Change-Id: I94becb2e6d5da6096271cf7893ff2b380314da06

M tests/gem5/traffic_gen/simple_traffic_run.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gem5/traffic_gen/simple_traffic_run.py
b/tests/gem5/traffic_gen/simple_traffic_run.py
index 7c0f188..bbb517e 100644
--- a/tests/gem5/traffic_gen/simple_traffic_run.py
+++ b/tests/gem5/traffic_gen/simple_traffic_run.py
@@ -209,7 +209,7 @@
exit_event = m5.simulate()
print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}.")

-simstats = get_simstat(root, prepare_stats=True)
+simstats = get_simstat([core.generator for core in generator.get_cores()],
prepare_stats=True)
json_output = Path(m5.options.outdir) / "output.json"
with open(json_output, "w") as stats_file:
simstats.dump(stats_file, indent=2)

--
To view, visit
https://gem5-review.googlesource.com/c/public/gem5/+/71402?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: public/gem5
Gerrit-Branch: release-staging-v23-0
Gerrit-Change-Id: I94becb2e6d5da6096271cf7893ff2b380314da06
Gerrit-Change-Number: 71402
Gerrit-PatchSet: 1
Gerrit-Owner: Mahyar Samani msamani@ucdavis.edu

Mahyar Samani has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/71402?usp=email ) Change subject: tests: Reducing json stat dump size. ...................................................................... tests: Reducing json stat dump size. This change reduces the number of stats dumped as json in traffic_gen tests. Change-Id: I94becb2e6d5da6096271cf7893ff2b380314da06 --- M tests/gem5/traffic_gen/simple_traffic_run.py 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem5/traffic_gen/simple_traffic_run.py b/tests/gem5/traffic_gen/simple_traffic_run.py index 7c0f188..bbb517e 100644 --- a/tests/gem5/traffic_gen/simple_traffic_run.py +++ b/tests/gem5/traffic_gen/simple_traffic_run.py @@ -209,7 +209,7 @@ exit_event = m5.simulate() print(f"Exiting @ tick {m5.curTick()} because {exit_event.getCause()}.") -simstats = get_simstat(root, prepare_stats=True) +simstats = get_simstat([core.generator for core in generator.get_cores()], prepare_stats=True) json_output = Path(m5.options.outdir) / "output.json" with open(json_output, "w") as stats_file: simstats.dump(stats_file, indent=2) -- To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/71402?usp=email To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: public/gem5 Gerrit-Branch: release-staging-v23-0 Gerrit-Change-Id: I94becb2e6d5da6096271cf7893ff2b380314da06 Gerrit-Change-Number: 71402 Gerrit-PatchSet: 1 Gerrit-Owner: Mahyar Samani <msamani@ucdavis.edu>