Thanks Andreas for your advice, I will follow that to be more appreciative. 

In fact, I have already gone through most of these and have previously used m5ops successfully, in my codes, in the terminals and in .rcS files.


Could you please have a look at the following and guide me?

Where I could not figure out how would they work for this specific task.


My recent effort, to do this task is as following:


int main()
{
    int i;
    int j = 10;
    m5_checkpoint(0,0);
    for( i = 0; i <= j; i ++ )
    {
       if( i == 5 )
       {
          continue;
       }
       printf("Hello %d\n", i );
    }
    m5_exit;
    return 0;
}


However, I have not been able to know which trace/stat file and which variable should I see to get my answer, after executing this code. 

Furthermore, this was a simple case, if this really gives an answer. Considering a larger multi-threaded application with multiple instrumentation points it might be hectic to create checkpoints again and again.


Regards

 


--------- 원본 메일 ---------
보낸사람: Andreas Hansson <[email protected]>
받는사람 : gem5 users mailing list <[email protected]>
날짜: 2015년 11월 27일 금요일, 03시 36분 20초 +0900
제목: Re: [gem5-users] How to get number of clock cycles (gem5ticks)forROI
Boris was kind enough to point you to the relevant part of the tutorial. I would suggest to do as his suggest and watch them. That should provide enough information around how to use m5ops to dump and reset stats.

In the future I’d also suggest to be more appreciative of the people responding to questions on the mailing list.

Andreas

From: gem5-users <[email protected]> on behalf of Tod <[email protected]>
Reply-To: gem5 users mailing list <[email protected]>
Date: Thursday, 26 November 2015 at 18:24
To: gem5 users mailing list <[email protected]>
Subject: Re: [gem5-users] How to get number of clock cycles (gem5ticks)forROI

Thanks Boris and goodwill for you that you had found them highly instructive.

But sorry to say that I could not understand:

Why you have interrupted a thread where you have nothing to say other than what you just think.

Your answer as well as your recommendation is too simplistic.

BTW. What is the purpose of deleting the whole text from the thread?


--------- 원본 메일 ---------
보낸사람: [email protected]
받는사람 : gem5 users mailing list <[email protected]>
날짜: 2015년 11월 26일 목요일, 23시 11분 36초 +0900
제목: Re: [gem5-users] How to get number of clock cycles (gem5ticks) forROI
Tod,

>Could you please point to, where exactly is
>the part on "Instrumenting a Benchmark”?

I think Andreas is talking about the video called "Common Tasks", towards the end.  But I would recommend that you watch all of them -- at least I did find them highly instructive.

Boris

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users



IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
_______________________________________________
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