This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

profiling on sh


Hi,

I'm looking at the FUNCTION_PROFILER macro in gcc/config/sh/sh.h and all it
seems to be doing is 'trapa #33' and then printing a label.  Now I looked at
a few other platforms like arm, etc. and they mostly seem to be doing the
same thing: calling mcount() and then setting a label.  I'm just wondering
if anyone can explain to me exactly how this is supposed to work on sh?  Is
there a trap handler #33 registered somewhere that I can't find?  I'm not
getting any call graph data saved in my gmon.out which leads me to think
that mcount is never being called (that, and the fact that there is no
reference to mcount in the binary ;-).  I'm seeing lots of bb_* stuff in the
object - is sh using basic block profiling instead?  If so, could someone
more expert than I give me a hint as to how to properly make it call mcount
instead?  *Whew*  I think that's all. ;-)

Thank you

Kris


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]