It would require a little more hacking, I think, but the "right" way to do this is to use the m5 binary in the target system (see util/m5) to execute a fake m5op instruction that tells the simulator to turn on tracing. Then you can put a call to this binary in your script right before you fire up your benchmark. We already do this to time checkpoints appropriately, so you could use that as a guide (or if you're not doing checkpoints, you could hack the code up just to use the existing checkpoint hooks to enable tracing instead... ugly, but faster).
Steve On Tue, Aug 4, 2009 at 11:54 AM, Sujay Phadke<[email protected]> wrote: > any better way of doing this? > > ----- Original Message ----- > From: ef > To: M5 users mailing list > Sent: Monday, August 03, 2009 3:15 PM > Subject: Re: [m5-users] memory traces in FS mode > I think you need to run a blank .rcs file and see the stats.txt to see when > linux boot ends. So your basically only running the linux bootup. Maybe > someone will have a better idea... > > > On Mon, Aug 3, 2009 at 1:55 PM, Sujay Phadke <[email protected]> wrote: >> >> I am not sure how to get the tick when it starts. >> >> ----- Original Message ----- >> From: Lisa Hsu >> To: M5 users mailing list >> Sent: Monday, August 03, 2009 2:28 PM >> Subject: Re: [m5-users] memory traces in FS mode >> If you know what tick the benchmark starts at, just don't begin your >> traceflagging until that point (i.e. --trace-start=Tick) >> Lisa >> >> On Mon, Aug 3, 2009 at 9:22 AM, Sujay Phadke <[email protected]> >> wrote: >>> >>> Hello, >>> I am trying to collect memory traces running specweb in FS mode. >>> However, if I use the traceflags to collect traces (say MemoryAccess), it >>> starts collecting all memory requests, including the OS booting up. I want >>> to collect only when the benchmark start running. How do I do this.? >>> >>> Thanks, >>> Sujay >>> _______________________________________________ >>> m5-users mailing list >>> [email protected] >>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users >> >> ________________________________ >> >> _______________________________________________ >> m5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users >> >> _______________________________________________ >> m5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > > ________________________________ > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > > _______________________________________________ > m5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/m5-users > _______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
