Hi Hui,
  Can you give specifics of what you're trying to achieve?  Depending on
what you'd like to do, it may make most sense to modify the benchmark that
you're running to explicitly call the command.  On the other hand, it may
be simple to add the call you'd like to the simulator and parameterize it
to be called if you pass a command line parameter.

  Thanks,
  Joel



On Mon, Jul 22, 2013 at 10:42 PM, Hui Zhao <[email protected]> wrote:

> Joel
>    Thanks for the reply. But I have a question about this script.
> According to its comment:
>
> when run in M5, it creates  
> <http://grok.gem5.org/xref/gem5/configs/boot/hack_back_ckpt.rcS#5>a 
> checkpoint after Linux boot up, but
>
> before any benchmarks have been run.
>
> However, I want to create a checkpoint after a benchmark is run
> for some time, then call some "/sbin/m5 cmd" and continue the
>
> same benchmark's execution.
> Should this script work for my purpose or some change is needed?
>
> Thanks
>
> Hui
>
>
>
> On Mon, Jul 22, 2013 at 3:03 PM, Joel Hestness <[email protected]>wrote:
>
>> Hi Hui,
>>   I'd recommend that you check out the hack_back_ckpt.rcS runscript
>> included in gem5/configs/boot/, and for more detail on controlling the
>> system after checkpoint restore, take a look at this email thread:
>> http://www.mail-archive.com/[email protected]/msg07720.html
>>
>>   Joel
>>
>>
>> On Mon, Jul 22, 2013 at 1:21 AM, Hui Zhao <[email protected]> wrote:
>>
>>> Hello
>>>    Can we make some changes in the simulation settings after restore
>>> from a checkpoint?
>>> For example, I first save a checkpoint, when I restore from it, is there
>>> a way that I can call "/sbin/m5 cmd" first before continue the execution?
>>> Some posts talk about running commands like in .rcS files in m5 term after
>>> restoring the checkpoint, however, when I try it, the execution just
>>> continue from the checkpoint and there is no way to type in any cmd in m5
>>> term.
>>>
>>> Thanks
>>> Hui
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>>
>> --
>>   Joel Hestness
>>   PhD Student, Computer Architecture
>>   Dept. of Computer Science, University of Wisconsin - Madison
>>   http://pages.cs.wisc.edu/~hestness/
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>



-- 
  Joel Hestness
  PhD Student, Computer Architecture
  Dept. of Computer Science, University of Wisconsin - Madison
  http://pages.cs.wisc.edu/~hestness/
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to