Re: Questions regarding Perl instrumentation

2005-09-22 Thread Alexander Kolbasov
Rafael == Rafael Garcia-Suarez [EMAIL PROTECTED] writes: Rafael Alexander Kolbasov wrote: Solaris (*) has a dynamic instrumentation tool called DTrace. It allows to *dynamically* instrument any running application and get useful information about its behavior with zero (or

Questions regarding Perl instrumentation

2005-09-13 Thread Alexander Kolbasov
Dear Perl internals experts, I am new to this list and to Perl internals, so please keep this in mind. Solaris (*) has a dynamic instrumentation tool called DTrace. It allows to *dynamically* instrument any running application and get useful information about its behavior with zero (or almost

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Rafael Garcia-Suarez
Alexander Kolbasov wrote: Solaris (*) has a dynamic instrumentation tool called DTrace. It allows to *dynamically* instrument any running application and get useful information about its behavior with zero (or almost zero) impact on the application when it is not instrumented. This works

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Alan Burlison
Rafael Garcia-Suarez wrote: Maybe are you aware of http://blogs.sun.com/roller/page/alanbur?entry=dtrace_and_perl already ? As Rafael says, I've already done some work on this, documented at the link above. My intention is to put some generic macros into perl at the appropriate places. By

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Rafael Garcia-Suarez
Alan Burlison wrote: Rafael Garcia-Suarez wrote: Maybe are you aware of http://blogs.sun.com/roller/page/alanbur?entry=dtrace_and_perl already ? As Rafael says, I've already done some work on this, documented at the link above. My intention is to put some generic macros into perl at

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Nicholas Clark
On Tue, Sep 13, 2005 at 10:02:38AM +0200, Rafael Garcia-Suarez wrote: Alan Burlison wrote: Rafael Garcia-Suarez wrote: Maybe are you aware of http://blogs.sun.com/roller/page/alanbur?entry=dtrace_and_perl already ? As Rafael says, I've already done some work on this, documented at

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Rafael Garcia-Suarez
Nicholas Clark wrote: From what I remember Alan telling me about what Dave had said, there are were a few more points other than entersub and leavesub that would need instrumentation. goto sub; was the most obscure, but I think that require was another. What about the unusual ways of exiting

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Dave Mitchell
On Tue, Sep 13, 2005 at 11:14:07AM +0200, Rafael Garcia-Suarez wrote: Nicholas Clark wrote: From what I remember Alan telling me about what Dave had said, there are were a few more points other than entersub and leavesub that would need instrumentation. goto sub; was the most obscure,

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Alan Burlison
Rafael Garcia-Suarez wrote: I think it's worth investigating doing it in a module, providing an alternate runloop or only changing the pp functions for entersub and leavesub. Putting probes around every op dispatch has a very noticeable effect, the reason for the per-sub probes was it

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Rafael Garcia-Suarez
Alan Burlison wrote: I'd be more than happy to do it in a module, but I'm not clear how I would replace functions in libperl from a module. Your module could, for example, replace the op_ppaddr fields of the ops you want to intrument with your own DTrace-enabled implementation. (I note that

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Paul Johnson
On Tue, Sep 13, 2005 at 01:29:41PM +0200, Rafael Garcia-Suarez wrote: Alan Burlison wrote: I'd be more than happy to do it in a module, but I'm not clear how I would replace functions in libperl from a module. Your module could, for example, replace the op_ppaddr fields of the ops you

Re: Questions regarding Perl instrumentation

2005-09-13 Thread Alexander Kolbasov
Rafael Garcia-Suarez wrote: Maybe are you aware of http://blogs.sun.com/roller/page/alanbur?entry=dtrace_and_perl already ? As Rafael says, I've already done some work on this, documented at the link above. My intention is to put some generic macros into perl at the appropriate