You can add some code to to the setMiscReg() implementation that chages the 
asid to print something out.

Ali

On Nov 11, 2011, at 3:47 PM, Charles Gala wrote:

> Thank you for replying to my post.
> 
> Seeing the ASID would definitely be sufficient for what I am trying to do.  I 
> think I'd like to try to trace the ASID just when it changes, that way I 
> don't have to sift through the millions of output lines.  How would I go 
> about setting the simulation to do just that?
> 
> -CJ
> 
> On Thu, Nov 10, 2011 at 12:51 PM, Steve Reinhardt <ste...@gmail.com> wrote:
> 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
> 
> 
> 
> -- 
> -C.J. Gala
> 56 Duncan Station Road
> McKeesport, PA 15135
> Cell: (412) 860-0182
> _______________________________________________
> 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