Unfortunately in FS mode the information about which process is being run
is really maintained inside the simulated OS.  You could do something like
print out the ASID as part of the exec trace (or, probably more easily,
just trace when it changes) so you would be able to tell when you're in the
same (or different) processes.

Steve

On Thu, Nov 10, 2011 at 9:23 AM, Charles Gala <cjg...@gmail.com> wrote:

> Hello!
>
> I am a beginner at gem5, so forgive me for any ignorance.  I've been
> playing around with running multi-programmed (two or more benchmarks)
> simulations in FS, and I was wondering if there was a way to view when
> instructions are being issued for each benchmark, eg when instructions for
> one benchmark are being run and when instructions for a different benchmark
> are being run.  I am not so much concerned with what is the actual
> benchmark is being run at the time; I just want to be able to see that
> different benchmarks are running at some point.  I've tried using some of
> the --trace-flags options with no success.
>
> For figuring out how to do this I have been using the following .rcS
> script (/m_blackscholes_64c_simsmall_both.rcS), which runs two of the same
> benchmark in the background of the simulation.  Only one of them uses
> checkpoints.
>
> #!/bin/sh
> # File to run the blackscholes benchmark
>
> cd /parsec/install/bin
> /sbin/m5 dumpstats
> /sbin/m5 resetstats
> ./blackscholes 64 /parsec/install/inputs/blackscholes/in_4K.txt
> /parsec/install/inputs/blackscholes/prices.txt &
>
> /sbin/m5 switchcpu
> cd ../bin.ckpts
> ./blackscholes 64 /parsec/install/inputs/blackscholes/in_4K.txt
> /parsec/install/inputs/blackscholes/prices.txt &
>
> echo "Done :D"
> /sbin/m5 exit
> /sbin/m5 exit
>
> I have been using the following script to run the simulation.
>
> ./build/ALPHA_FS/gem5.opt ./configs/example/fs.py -n 4
> --script=/home/<directory>/m_blackscholes_64c_simsmall_both.rcS -I 600000000
>
> Thank you for your help.
>
> -CJ
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to