Re: [gem5-users] How the gem5 executes this rcS script?

2013-12-30 Thread huangyongbing
Hi, Gem5 will start dumping stats when the music player begin to broadcast the music. Best regards, Yongbing Huang From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On Behalf Of Peng Wei Sent: Tuesday, December 31, 2013 2:15 PM To: gem5 users mailing list

Re: [gem5-users] Problem about Create Checkpoint

2013-12-30 Thread huangyongbing
Hi Peng, In the AsimBench (renamed as Moby now) image provided by me, there is a rcS file named arm_ckpt_asim.rcS. You can use this file to create the checkpoint. Best regards, Yongbing Huang From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On Behalf Of P

[gem5-users] How the gem5 executes this rcS script?

2013-12-30 Thread Peng Wei
Hi there, I have a rcS script which will open a music player called "ttpod" and broadcast a 10-second song, as follows: /sbin/m5 checkpoint /sbin/m5 resetstats *am start -n com.sds.android.ttpod/com.sds.android.ttpod.app.player.NewMainActivity -d file:///sdcard_data/app_d

Re: [gem5-users] Problem about Create Checkpoint

2013-12-30 Thread Peng Wei
Hi Tod, Thank you for your reply. However, I didn't catch your point very well. Firstly, I ran a command in order to create a checkpoint: ./build/ARM/gem5.opt configs/example/fs.py --num-cpus=4 --kernel=vmlinux.smp.ics.arm.asimbench.2.6.35 --disk-image=ARMv7a-ICS-Android.SMP.Asimbench-v3.img --m

Re: [gem5-users] Problem about Create Checkpoint

2013-12-30 Thread Tod
'sleep 10' would be enough. Then you say the simulator to create the checkpoint, i.e., 'm5 checkpoint'. Over here it creates the checkpoint.  When you restore from the checkpoint the same script is there and the next command is there to be executed, i.e., 'm5 exit'.i.e., your script says tha

[gem5-users] Problem about Create Checkpoint

2013-12-30 Thread Peng Wei
Hi there, I tried to create a checkpoint in gem5 ARM full system mode, but it had been created successfully but cannot be used correctly. I used default CPU mode, 4 core, no caches, and use an .rCS file like this: sleep 600 /sbin/m5 checkpoint /sbin/m5 exit I would like to wait 10 minutes to le

Re: [gem5-users] Compile by Scripts

2013-12-30 Thread Tod
1st, while telnet-ing if you use the m5op (m5 dumpstats), you can save the simulation statistics, i.e., traces. 2nd, you can use 'gcc' inside the script but you need to see if gcc is there in the diskimage.  Yes, it is possible but maybe not the recommended way. Building the binary using emu

Re: [gem5-users] Compile by Scripts

2013-12-30 Thread Zohreh Naghibi
Thanks for your help. Actually I meant to compile a workload by gcc command but I wanted to use this command in the script. Is it possible or I took the wrong way? Because by telnet-ing and compiling and running workload my trace file are empty, but when I use script to compile and run my c code th

Re: [gem5-users] Compile by Scripts

2013-12-30 Thread Tod
Please have a look at: http://www.m5sim.org/Running_gem5And there is this snippet of a run_script.rcS: echo -n "setting up network..." /sbin/ifconfig eth0 192.168.0.10 txqueuelen 1000 /sbin/ifconfig lo 127.0.0.1 echo -n "running surge client..." /bin/bash -c "cd /benchmarks/surge && ./Su