Hi Abhishek, Check out the hack back script for an example on how to create a common checkpoint: https://gem5.googlesource.com/public/gem5/+/master/configs/boot/hack_back_ckpt.rcS
On Fri, Aug 30, 2019 at 8:26 AM Abhishek Singh < [email protected]> wrote: > Hello Everyone, > > I have created the checkpoint for booting up Linux image. > My command line is > """ > > build/X86/gem5.opt > --outdir=/home/abs218/gem5_dir_local/gem5_bl_fs/common_checkpoint_chkpt > --stats-file=common_checkpoint_chkpt.simout > --dump-config=common_checkpoint_chkpt.ini --redirect-stderr > --stderr-file=common_checkpoint_chkpt.e configs/example/fs.py > --checkpoint-dir=/home/abs218/gem5_dir_local/gem5_bl_fs/common_checkpoint_chkpt > --disk-image=/home/abs218/gem5_dir_local/gem5_bl_fs/intel.img > --kernel=/home/abs218/new_fs/gem5/linux-4.8.13/vmlinux > --script=./common_checkpoint.rcS --caches --l2cache > > > """ > > my common_checkpoint.rcS is > > """ > > #!/bin/sh > > /sbin/m5 checkpoint > > echo "Done :D" > > /sbin/m5 exit > > > """ > > I wanted to use this checkpoint and try to run a hello_world benchmark. > So I modify my common_checkpoint.rcS script to > """ > > #!/bin/sh > > ./hello_world > > echo "Done :D" > > /sbin/m5 exit > > """ > And my gem5 command line is > """ > ./build/X86/gem5.opt > --outdir=/home/abs218/gem5_dir_local/gem5_bl_fs/common_checkpoint_chkpt > --stats-file=common_checkpoint_chkpt_restore.simout > --dump-config=common_checkpoint_chkpt_restore.ini configs/example/fs.py > --checkpoint-restore=1 > --checkpoint-dir=/home/abs218/gem5_dir_local/gem5_bl_fs/common_checkpoint_chkpt > --restore-with-cpu=AtomicSimpleCPU --cpu-type=DerivO3CPU --caches --l2cache > --disk-image=/home/abs218/gem5_dir_local/gem5_bl_fs/intel.img > --kernel=/home/abs218/new_fs/gem5/linux-4.8.13/vmlinux > --script=./common_checkpoint.rcS > """ > But my "system.pc.com_1.device" output after restoring is > "" > > Done :D > "" > That is, it did not run the hello_world program! > > I have made no changes to gem5, the commit I am using is " > 2a98a994df296f818b05da90ba073d879562da04" > > > My question is: > Is it not possible to create a common checkpoint and then run the > benchmark using that checkpoint? > Are my steps incorrect to create or restore from the checkpoint? > > > > > Best regards, > > Abhishek > _______________________________________________ > 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
