Hi, Gabe and Alexandru,
I'll try with the hints on the page.

Thank you for your reply.
Mark Chen

2011/7/5 Iordan Alexandru <[email protected]>:
> Hello
>
> All operations listed on http://www.gem5.org/M5ops can be called like 
> functions
> (m5_checkpoint, m5_reset_stats, m5_dump_stats, m5_dumpreset_stats etc.) in 
> your
> source code where you need them. However, in order to make them work you need 
> to
> do two things:
>
> - you need to include m5op.h in your code (you can find it in m5/util/m5/)
> - in m5/util/m5/ you will also find m5op_alpha.S (or similar if you use SPARC 
> or
> x86 ISA); you will need to crosscompile this file for the ISA you are using in
> your simulation and then link it to your executable   file (your source code)
>
> Hope this helps.
>
> B.R.
> Alexandru Iordan
>
>
>
> ----- Original Message ----
> From: Gabe Black <[email protected]>
> To: [email protected]
> Sent: Mon, July 4, 2011 8:39:55 PM
> Subject: Re: [gem5-users] Insert M5 operations in program (X86 Full System)
>
> We currently have some documentation related to this here:
>
> http://www.gem5.org/M5ops
>
> It doesn't describe how to do what you're trying to do very well so I'll
> need to improve it when I get a chance, but there's still a little
> information which might get you started.
>
> Gabe
>
> On 07/03/11 20:48, 冠男陳 wrote:
>> Hi, Gem5,
>> I'm now getting statistic of my program by execute "m5 resetstats"
>> before and "m5 dumpstats" after my program.
>> However, my program consists of three parts: initializaion, main
>> calculation, and verifying.
>> If I want the statistic of "main calculation" only, is there any way
>> to insert "m5 resetstats" and "m5 dumpstats" in C/C++ programs?
>>
>> Thank you very much.
>> Mark Chen
>> _______________________________________________
>> 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
> _______________________________________________
> 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