Hello, I'm not sure if my idea may work, but you could try to access some stat that count the number of cycles (numCycles?) from the cache code. You may need to pass a cpu pointer or something like that to have access to cpu stats. Or find a way to access the global tick counter (in picosec)...
Hope it helps, -- Fernando A. Endo, PhD student and researcher Université de Grenoble, UJF France 2014-04-19 4:35 GMT+02:00 Seyedhamidreza Motaman <mota...@mail.usf.edu>: > Hello > > Thanks. let me be more clear.I want to pass ROI_start_tick to a class in > cache_impl.hh during simulation. For example, > If( curTick()==ROI_start_tick){ > //do something// > } > > I know that gem5 will print the tick number when create checkpoint. But I > don't want first to find out checkpoint number then put it into my code and > then compile it. I was wandering if there is a parameter like > ROI_start_tick in gem5 that I can pass it to a class inside cache_impl.hh > > Regards, > Hamid > > > > On Fri, Apr 18, 2014 at 5:47 PM, Ali Saidi <sa...@umich.edu> wrote: > >> I'm not sure I understand? gem5 will print the tick number when the >> checkpoint is generated. >> >> Ali >> >> On Apr 18, 2014, at 1:29 PM, Seyedhamidreza Motaman <mota...@mail.usf.edu> >> wrote: >> >> Hello Ali >> >> Thanks for your answer. Is there any function or parameter in the code >> which can give me checkpoint tick number? >> >> Regards, >> Hamid >> >> >> On Fri, Apr 18, 2014 at 10:07 AM, Ali Saidi <sa...@umich.edu> wrote: >> >>> You can implement a parsec hook library with the m5op (E.g. m5 >>> checkpoint) and you'll get the tick when the checkpoint is created. >>> Ali >>> >>> On Apr 17, 2014, at 10:56 PM, Seyedhamidreza Motaman < >>> mota...@mail.usf.edu> wrote: >>> >>> Hello All, >>> >>> I would really appreciate if someone answer my question. I really need >>> that. How can I access number of tick when ROI starts in parsec benchmark >>> somewhere in the code. >>> >>> Best Regards, >>> >>> >>> On Thu, Apr 17, 2014 at 11:55 PM, Seyedhamidreza Motaman < >>> mota...@mail.usf.edu> wrote: >>> >>>> Hello All, >>>> >>>> I would if someone answer my question. I really need that. How can I >>>> access number of tick when ROI starts in parsec benchmark somewhere in the >>>> code. >>>> >>>> Best Regards, >>>> >>>> >>>> >>>> On Tue, Apr 15, 2014 at 7:56 PM, Seyedhamidreza Motaman < >>>> mota...@mail.usf.edu> wrote: >>>> >>>>> Hell All >>>>> >>>>> How can I pass the tick number when ROI of a benchmark start >>>>> simulating to a function inside the cache_impl.hh ?? >>>>> >>>>> Thanks for your help >>>>> >>>>> Hamid >>>>> >>>> >>>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> >> >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users