You can solve one of your probrems with the m5_work_begin() m5_work_end() ops that record how long a "work item" takes to run, however these are also marked non-speculative, although you could probably allow them to be speculative if you wanted to and perhaps cleanup the mess in the instruction destructor if it ended up being squashed.
Also depending on exactly what you want you can use PC based events cause events to happen in gem5 when the PC reaches certain values. If you know the PC of your loop this should be a workable solution. Ali On 17.08.2012 14:51, Amin Farmahini wrote: > I have a somewhat similar question. The method Ali mentioned works well when your ROI is large, but what if your ROI is short? For example the loop body of a loop that is executed many times. > I believe using m5_dumpreset_stats is not doable in this case for two reasons: (1) since the loop body is short, the overhead of m5_dumpreset_stats is not negiligible. m5_dumpreset_stats is also executed non-speculatively which imposes performance cost. (2) the loop is exectued many times so it dumps stats every time the loop is executed. > I am interested in finding the execution time of the loop body (and not the loop boundary checking, etc). So I was wondering if there is such a way to do fine-grained profling within Gem5? > > Thanks, > Amin > > On Fri, Aug 17, 2012 at 12:31 PM, Anh Nguyen <[email protected] [10]> wrote: > >> Tony, >> It traces both kernel and user-space codes. I traced JVM before. >> Anh- >> >> On Fri, Aug 17, 2012 at 10:13 AM, Anthony Gutierrez <[email protected] [7]> wrote: >> >>> I've used an x86_64 host with Ubuntu to build SystemTap modules and run them on Android ARM, so it's doable. But, I don't think SystemTap is relevant here if you're trying to do architectural simulation. SystemTap is a profiling tool that uses kprobes; it doesn't really do userspace profiling last time I checked. >>> -Tony >>> >>> On Fri, Aug 17, 2012 at 1:05 PM, Amin Farmahini <[email protected] [4]> wrote: >>> >>>> Ahn, >>>> >>>> I am not familiar with SystemTap, but I just took a look at its beginners guide and I believe you cannot use this tool for the kind of things Shervin would like to do. This is because "The host system must be the same architecture and running the same distribution of Linux as the target system in order for the built instrumentation module to work." >>>> My understanding could be wrong, though. >>>> >>>> Thanks, >>>> Amin >>>> >>>> On Fri, Aug 17, 2012 at 11:57 AM, Anh Nguyen <[email protected] [1]> wrote: >>>> >>>>> Systemtap >>>> >>>> _______________________________________________ >>>> gem5-users mailing list >>>> [email protected] [2] >>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [3] >>> >>> _______________________________________________ >>> gem5-users mailing list >>> [email protected] [5] >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [6] >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] [8] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [9] Links: ------ [1] mailto:[email protected] [2] mailto:[email protected] [3] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [4] mailto:[email protected] [5] mailto:[email protected] [6] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [7] mailto:[email protected] [8] mailto:[email protected] [9] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [10] mailto:[email protected]
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
