Inserting profiling function calls

2007-02-08 Thread GERIN Patrice

Dear All,

   In order to implement a specific basic block profiling, i have to 
insert function calls at the end of each basic blocks or/and at the end 
of each functions.

To do this I'd like to add a profiling pass similar to the arc profiling.
I'm a beginner in the GCC internal implementation and i hope this 
subject will be interesting enough for you to give me attention.
I begin to localize were to insert/add this functionality but more 
detailed on "a magic how to" insert function calls in the generated code 
would be very helpful for me.

Is there somewhere a guide line to add profiling pass ?

Thank you for your help,
Patrice






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.

http://fr.mail.yahoo.com


Re: Inserting profiling function calls

2007-02-08 Thread GERIN Patrice



Would you for a start please
explain what do you need to do that can't be done using existing arc and
value profiling?
  

Sorry, my first mail was not clear about the goal.
Objectives are to follow the execution of function and basic block at 
execution time.

To do this, we plan to insert function call, like mcount is inserted
at the function level for gprof but at the basic block level.
A user library linked with the application can then implement this 
functions.


Thank you,
Patrice





___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.

http://fr.mail.yahoo.com