Hi Sebastian, I use [2] as starting point but I can’t change workloads in the python > script and rerun the simulation because this would simulate another system > instead of simulating another executable in the same system.
Going to python script should not simulate another system, rather once you go back to the simulation loop your simulation will resume from the point where it stopped. One way of what you are trying to achieve is to execute m5 utility (with the exit input for example, more on m5: https://www.gem5.org/documentation/general_docs/m5ops/) in the guest whenever one benchmark has finished. This will take stop the simulation and take the control to the python script where you can dump the stats (m5.stats.dump()), and then resume the simulation to execute the next benchmark. I will suggest taking a look at the following example script: https://github.com/gem5/gem5/blob/stable/configs/example/gem5_library/x86-spec-cpu2006-benchmarks.py -Ayaz On Mon, Jan 30, 2023 at 12:46 AM Sebastian Weber via gem5-users < gem5-users@gem5.org> wrote: > Hello, > > > > I am trying to use the current version of gem5 in full system mode > interactively (--interactive) to be able to dump or reset statistics > while connecting to the simulated console with m5term [1] (--listener-mode) > to trigger the execution of executables. The goal is using gem5 in a > co-simulation and being able to execute (multiple) binaries at arbitrary > points in time during the simulation and getting binary-specific statistics > after their execution. I use [2] as starting point but I can’t change > workloads in the python script and rerun the simulation because this would > simulate another system instead of simulating another executable in the > same system. At the moment I am not able to trigger the execution of > binaries with m5term and getting the statistics with the interactive mode, > instead I always get empty statistics. My question is whether this setup of > gem5 and m5term is able to generate statistics and if so, how to get them? > > > > Best regards, > > Sebastian Weber > > > > [1] https://www.gem5.org/documentation/general_docs/fullsystem/m5term > > [2] > https://github.com/gem5/gem5/blob/stable/configs/example/gem5_library/x86-ubuntu-run-with-kvm.py > > > > > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org