Hi Ryan, Checkpointing is controlled from the python run scripts. When you run "/sbin/m5 checkpoint" it creates a exit event that exits the simulator event loop. This kicks control back to the Python run script. I don't believe that fs/se.py correctly support this kind of exit. However, you could easily create your own runscript which does support this. The other option is to modify the runscript you are using to correctly deal with the "checkpoint" exit type (which actually isn't a type but a string).
Also, make sure you're looking in the right place for the checkpointing output. It should be in the outdir (m5out/ by default). Let me know if you have any further questions. Checkpointing isn't as straightforward as it should be. Also, it hasn't been tested for a while so there may be bugs. Cheers, Jason On Wed, May 16, 2018 at 1:19 PM Ryan Wang <[email protected]> wrote: > Hi Ciro, > The gem5 version is 2.0. The command line is: > gem5.opt configs/full_system/run.py --script=test.rcS > where test.rcS is just /sbin/m5 checkpoint, and the run.py is from the > gem5 tutorial without any changes. > I also type the /sbin/m5 checkpoint inside the booted system, but it has > the same results. > Thanks a lot for your help! > Regards, > Ryan > > On Tue, May 15, 2018 at 11:27 PM, Ciro Santilli <[email protected]> > wrote: > >> What is the full gem5 command line cli and gem5 version? >> >> Here is a working setup: >> >> https://github.com/cirosantilli/linux-kernel-module-cheat/tree/99382df5ff1c1933be1371d060a221195608a9a5#gem5 >> >> On Wed, May 16, 2018 at 2:13 AM, Ryan Wang <[email protected]> >> wrote: >> > Hi all, >> > I'm able to boot a kernel with the given image >> > (www.m5sim.org/dist/current/x86/x86-system.tar.bz2) using the >> AtomicCPU. >> > However when I try to create a checkpoint using command /sbin/m5 >> checkpoint >> > in the booted guest machine, it just exits without any checkpoint file >> > generated. The host side just shows: Exiting @ tick some_large_number >> > because of checkpoint. >> > >> > I checked the mailing list and haven't found anything same like this? >> > Does anyone knows why this happens/ >> > >> > Thanks >> > Ryan >> > >> > _______________________________________________ >> > 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 > > > _______________________________________________ > 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
