Hi Amin,
You can see my previous email about function tracing. For SE mode code it probbaly will solve your issues. Thanks, Ali On 21.07.2012 02:34, Amin Farmahini wrote: > Hi, > > I would like to profile program code (compiled for ARM ISA) to get function call timings and total cycles taken by each function. I thought one possible option could be gprof. One could use gcc from Code Sourcery to get the instrumented executable file for profiling (-pg) and simulate that exe file using Gem5 to get the gprof output file. But for several reasons (including gprof limitations) I don't think this is the right way for code profiling. I am not even sure this option results in any valid output on ARM SE. One other option is to manually instrument the code using M5 magic instructions but this option has its own limitations. I was wondering if anyone has any thoughts on this? > > PS: My current architecture is similar to Cortex-A8, but I would like to be able to profile my program code using different architecture configurations. > > Thanks, > Amin
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users