I am new to gem5 myself, but from what i have come to understand so far...for a quick setup, you need to compile your RSA algo on your host machine (make sure to compile statically by adding -static while compiling to remove all dependencies else the binaries might not run on the simulated system) and then copy the output executable on to a folder (i.e. root) on the disk image. Once copied, you can run the executable on the simulated system by accessing the folder you saved the binaries in (i.e. root). After running the binaries and switching of the simulated system, the results of your simulation will be saved onto the /m5out/stats.txt file. There is alot of information on it and contains the statistics of the complete simulation period( i.e. system boot up, accessing folders, running binaries etc.) In order to distinguish between the operating system instructions statistics and required RSA algo statistics, it would be easier to attach a script when you start the full system simulation that will run the binaries automatically. In your script you should call 'dumpresetstats' before running the program so that the program statistics are seperated from the system startup statistics (i.e. you will then have at least two simulation results in your stats.txt depending upon the number of times you called dumpresetstats.). The simulated system will automatically exit after running the required program. We connect with the other shell to get the output of the simulated system..i.e. in the case of vmware you have the vmware application in the background and then in the foreground you get an output of the system that is being run on it. To monitor the memory access patterns of the RSA algorithm, i guess you will have to try to decode the stats.txt file.
The following links should help make the above summary clearer. *-compiling with static flag* https://stackoverflow.com/questions/8692128/static-option-for-gcc -*copying binaries on to the image* http://www.m5sim.org/Disk_images be sure to create a folder before mounting the image i.e. *mkdir mnt* *mount -o loop, offset=32256 foo.img mnt* ** then copy files into mnt/root* *umount mnt* you may have to sudo *-attaching a script to the simulation* http://www.m5sim.org/PARSEC_benchmarks - see 'Running PARSEC in gem5' section http://git.net/ml/emulators.m5.users/2007-04/msg00023.htmlls http://gem5.org/M5ops Best Regards. Saad On Tue, Jul 18, 2017 at 10:44 AM, Umair Khan <[email protected]> wrote: > Hi, > > I am working on gem5 and I want to run RSA algorithms on gem5 and monitor > its memory access pattern but i dont know how to do it. I searched gem5 > website alot and also online stuff related to gem5 but could not got any > useful information. I have also set up full system mode for ARM, Alpha , > and x86. when i run the full system mode i connect the telnet 3456 as > suggested in gem5 tutorial but then i dont know what are the commands to > execute or what is the purpose of connecting with other shell. Plz help me > as i am stuck in this problem for almost more than 2 weeks. Your help will > be appreciated. Thanks > > _______________________________________________ > 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
