you can’t do it from gem5 without modifying the simulator code, however since 
there are multiple sections of stats being written to the same file, you could 
easily post-process it into multiple files.

Thanks,
Ali

On Apr 17, 2014, at 1:25 PM, Kuk-Hwan Kim <[email protected]> wrote:

> 
> Dear Gem5 community,
> 
> I would like to run all the asimbenchmark application in one script file. 
> 
> let's say, I would like to create separate stats.file with different name as
> a result of one particular benchmark software execution. Following examples
> are running two software packages and put their stats in the same file.. But
> I would like to create two separate files as a result of two benchmark
> software run. 
> 
> #!/system/bin/sh
> 
> stop_m5() {
>    /sbin/m5 exit
> 
>    return
> }
> 
> wait_stop() {
> 
>        busybox usleep 2000000
>        run_var=1
>        run_related=1
>        while [ $run_var -eq 1 ]
>        do
>                #counter=$(busybox ps -o user,stat,args -T | busybox grep
> '10061' | busybox grep -v 'S' | busybox wc -l)
>                if [$run_related -eq 1 ]
>                then
>                        counter=$(ps | busybox grep -v 'S' | busybox grep -v
> 'ps' | busybox grep -v 'busybox' | busybox wc -l)
>                        counter2=$(busybox ps -o user,stat,args -T | busybox
> grep '10061' | busybox grep -v 'S' | busybox wc -l)
>                        if [ $counter2 -ne 0 ]
>                        then
>                                run_related=2
>                        fi
>                else
>                        counter=$(busybox ps -o user,stat,args -T | busybox
> grep '10061' | busybox grep -v 'S' | busybox wc -l)
>                fi
>                if [ $counter -eq 0 ]
>                then
>                        run_var=2
>                else
>                        busybox usleep 5000
>                fi
> 
>        done
> }
> 
> 
> run_adobe_test() {
>        #/sbin/m5 checkpoint
>        /sbin/m5 resetstats
>        am start -n com.adobe.reader/com.adobe.reader.AdobeReader
> file:///mnt/sdcard/app_data/IISWC-2011.pdf
>        #sleep 70
>        wait_stop
>        /sbin/m5 dumpstats
>        #stop_m5
> 
>        return
> }
> 
> run_k9mail_test() {
>        #/sbin/m5 checkpoint
>        /sbin/m5 resetstats
>        am start -W com.fsck.k9/com.fsck.k9.activity.Accounts
>        /sbin/m5 dumpstats
>        #stop_m5
> 
>        return
> }
> 
> 
> #sleep 10
> run_adobe_test
> 
> #sleep 10
> run_k9mail_test
> 
> ===> In the above example, 
> 
> Could I do follow things
> /sbin/m5 resetstats
> .... android command-line for initiating benchmark software ---
> /sbin/m5 dumpstats   <-- can I put some file name to designate different    
>                      file name whenever this is invoked?
> 
> 
> I'd appreciate any kind of help and comments. 
> 
> 
> Regards
> Kuk-Hwan
> 
> _______________________________________________
> 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

Reply via email to