how to write our own probes for integrating dtrace with other scripting langauage. eg:python -- This message posted from opensolaris.org
how to write our own probes for integrating dtrace with other scripting langauage. eg:python -- This message posted from opensolaris.org
krishnan parthasarathi - Sun Microsystems - Bangalore India
2009-Mar-09 05:55 UTC
[dtrace-discuss] dtrace
On 03/09/09 11:22, gautham k wrote:> how to write our own probes for integrating dtrace with other scripting langauage. eg:python >See http://blogs.sun.com/binujp/entry/dtrace_provider_for_python. This must help. Regards, Krishnan
Hi! On Mon, Mar 9, 2009 at 11:21 AM, gautham k <gauth.89 at gmail.com> wrote:> how to write our own probes for integrating dtrace with other scripting langauage. eg:pythonYou want to write your own probes? Please refer to http://www.solarisinternals.com/wiki/index.php/DTrace_Topics_USDT Also, refer to http://blogs.sun.com/binujp/entry/dtrace_provider_for_python Best, Amit> -- > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >-- http://amitksaha.blogspot.com http://amitsaha.in.googlepages.com/ *Bangalore Open Java Users Group*:http:www.bojug.in "Recursion is the basic iteration mechanism in Scheme" --- http://c2.com/cgi/wiki?TailRecursion
hello everyone can i get some example on how to integrate dtrace with scripting language -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20090317/b0c679fb/attachment.html>
On Tuesday, March 17, 2009, at 4:11 am, gautham k wrote:> hello everyone > can i get some example on how to integrate dtrace with scripting language >Take a look at the examples in DtraceToolkit, several of which combine scripting languages and dtrace. In OpenSolaris, this is the SUNWDtraceToolkit package, which is installed in /opt/DTT. It is also available as a tar ball from http://opensolaris.org/os/community/dtrace/dtracetoolkit/ HTH, David
On Tue, Mar 17, 2009 at 7:20 PM, David Lutz <David.Lutz at sun.com> wrote:> On Tuesday, March 17, 2009, at 4:11 am, gautham k wrote: >> hello everyone >> can i get some example on how to integrate dtrace with scripting language >> > > Take a look at the examples in DtraceToolkit, several of > which combine scripting languages and dtrace. ?In OpenSolaris, > this is the SUNWDtraceToolkit package, which is installed in > /opt/DTT. ?It is also available as a tar ball from > http://opensolaris.org/os/community/dtrace/dtracetoolkit/Also, please take a look at a similar discussion on BOSUG: http://opensolaris.org/jive/thread.jspa?threadID=96871&tstart=0 -Amit -- http://amitksaha.blogspot.com http://amitsaha.in.googlepages.com/ *Bangalore Open Java Users Group*:http:www.bojug.in "Recursion is the basic iteration mechanism in Scheme" --- http://c2.com/cgi/wiki?TailRecursion
hello everyone I am looking into system call failure i know that system call fail when errno is non-zero The following is my query 1) I want to know what information can i get by looking into the stack using ustack() function.does it provide any vital information for my analysis. thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/dtrace-discuss/attachments/20090409/ed479f5d/attachment.html>
krishnan parthasarathi - Sun Microsystems - Bangalore India
2009-Apr-09 09:03 UTC
[dtrace-discuss] Dtrace
Hi Gautham, Reply inline.. On Thu, 2009-04-09 at 14:16 +0530, gautham k wrote:> hello everyone > > I am looking into system call failure i know that system call fail > when errno is non-zero > > The following is my query > 1) I want to know what information can i get by looking into the > stack using ustack() function.does it provide any vital information > for my analysis.ustack() gives the stack trace of userland functions that were called before the function at which the probe was fired. stack() is used to get the kernel stack in the same way. How useful this information is depends on what exactly you are looking for? It has always been handy to look at the stack to understand the execution path. Regards, Krishnan> > > thanks in advance > > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org
> On Thu, 2009-04-09 at 14:16 +0530, gautham k wrote: >> hello everyone >> >> I am looking into system call failure i know that system call fail >> when errno is non-zeroNot exactly right: the return code of a system call indicates failure or success. Only if the return code indicates a failure (== -1, usually), errno contains valid information. Joachim -- Joachim Worringen, Software Architect, Dolphin Interconnect Solutions phone ++49/(0)228/324 08 17 - http://www.dolphinics.com
On Thu, Apr 09, 2009 at 11:09:34AM +0200, Joachim Worringen wrote:> >On Thu, 2009-04-09 at 14:16 +0530, gautham k wrote: > >>hello everyone > >> > >> I am looking into system call failure i know that system call fail > >>when errno is non-zero > > Not exactly right: the return code of a system call indicates failure or > success. Only if the return code indicates a failure (== -1, usually), > errno contains valid information.True for the userland "errno" variable. The dtrace "errno" variable, on the other hand, is non-zero if and only if the system call failed. Cheers, - jonathan