Report an Issue | Log In | Sign Up   View a printable version of the current page.


DTrace

perl Provider


Added by aleventhal , last edited by Sven_Dowideit on Feb 14, 2008  (view change) show comment
Labels: 
(None)

perl Provider

The perl provider provides probes for tracing perl scripts.

This provider is in development and is not currently available

The following probes are available in BleadPerl, Leopard OSX and various patches for 5.8.8 and 5.10

Probe (arguments) Description
sub-entry (function, filename, line number)  perl code function call entry
sub-return (function, filename, line number)  perl code function call exit

 The following probes are being worked on by SvenDowideit, and are available for 5.8.8 and bleadperl

Probe arguments Description
load-module-entry moduleName instruments use, require, do and load
load-module-return moduleName  
main-enter none instruments the internal perl processing stages - construct, parse, run, destruct
main-exit none  
new-sv void*
instruments all perl allocations
del-sv void* instruments all perl deallocations


Other expected or hoped for probes:

Probe arguments Description
sub-stack (function, filename, line number, stacktext, stackdepth) hoped to be able to show a text stack dump on sub-entry
     
     
     



Issues.

  1. The changes still only work for dynamically linked Perl, statically links execuatbles core dump if you have probes enabled (which causes issues when the build process uses miniperl)
  2. There are intermittent linker issuse for miniperl - caused when you build a second or third time
  3.  

The individuals who post here are part of the extended Sun Microsystems community and they may not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact