>
> You can define a client request for your tool, and insert this client
> request at the beginning of the pro3 function. Or am I missing something
> here?
>
> Josef
>
> >
>
>
> Dear Josef ,
First and foremost I am really grateful to you for your reply. It
seems that i could not be able to present my question properly, so therefore
i am again presenting this question to the forum. Lets consider following
diagram for a while and then i will ask the question.
Our Tool
program we are analyzing ( myTest.C )
|
| | |
\/ \/
%%%%%%%%%%%%%%%%%%%%%
|------------------------------------------
% %
| 26: int main(){
% %
| 27:
% %%%%%%%%%%%%%% | 28: fun1();
% % %
| 29: fun2();
% % MEM CHECK % |
30: fun3();
% % %
| 31:
% %%%%%%%%%%%%%% | 32: event1();
%
% | 33:
% %%%%%%%%%%%%%% | 34: fun1();
% % %
| 35: fun1();
% % CALL GRIND % |
36: fun2();
% % %
| 37:
% %%%%%%%%%%%%%% | 38: event2();
% VALGRIND % | 39:
% /\ %%%%%%%%%%%%%% | 40: fun1();
% | % %
| 41:
% ------------> % EMBLA % |
42: event1();
% % %
| 43:
% %%%%%%%%%%%%%% | 44: funX();
%
% | 45:
% %%%%%%%%%%%%%% | 46: event1();
% % %
| 47:
% % OTHER_TOOL % | 48:
% % %
| 49: return 0;
% %%%%%%%%%%%%%% | 50: }
%
% | 51:
%
% | 52:
%%%%%%%%%%%%%%%%%%%%%
|-------------------------------------------
In this scenario I am working with EMBLA which uses VALGRIND,
so lets asume we are analyzing myTest.C file using tool. In file
myTest.C there are lot of function calls but at line 32, 38, 42 and 46 there
are function calls that corresponds to certain events. So I wanted a
suitable method that tells my tool Embla that this function call correspond
to some event (which are mentioned on line 32, 38, 42 and 46), so that Embla
will know that it has to profile them differently.
At moment i anticipate it could be done in following two ways.
1). inserting some sort of macro in file myTest.C so that when ever we
encounter it we know that following function is an event.
2). or some sort of functionality already provided in VALGRIND 3.3.0 (which
i failed to find out).
So i hope, my question is much clear now and i will appreciate all sort of
help .
Thanking you in anticipation for your time and consideration
With Best Regards
Waseem
--
With Regards
Waseem
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers