Afawwzqsdl.slm
On Jul 23, 2017 11:00 AM, <[email protected]> wrote:
Send gem5-users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gem5-users digest..."
Today's Topics:
1. Re: How to run an application on Gem5 (Saad Sheikh)
----------------------------------------------------------------------
Message: 1
Date: Sun, 23 Jul 2017 12:34:03 +0500
From: Saad Sheikh <[email protected]>
To: gem5 users mailing list <[email protected]>
Subject: Re: [gem5-users] How to run an application on Gem5
Message-ID:
<cagmqgqi8lj2taoko9vxqguvsotmwlf9cwmeg0osyc5xs_uj...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m5sim.org/cgi-bin/mailman/private/gem5-users/
attachments/20170723/6c413687/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
------------------------------
End of gem5-users Digest, Vol 132, Issue 23
*******************************************
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users