OpenCSW Bug Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002742 [pm_test_tester] regular use feature always 2008-01-17 12:20 2013-06-17 14:17
Reporter dam View Status public  
Assigned To bonivart
Priority normal Resolution open  
Status assigned  
Summary 0002742: DTrace support for Perl
Description It would be nice to have DTrace support in the Blastwave Perl
Additional Information From DTraceToolkit/Perl/Readme:

Perl - DTracing Perl

   These scripts trace the Perl programming language, and require a version
   of Perl to be built with the DTrace probes patch applied.

   The Perl DTrace provider was originally written by Alan Burlison, and
   later rewritten by Richard Dawe. These scripts were written and tested
   with Richard\'s patch to perl, which can be found in the comments on
   Alan\'s original blog entry, [^]
   To get this and these scripts working, the rough steps are,

        1. Download and extract perl 5.8.8 (
        2. Download Richard\'s patch
        3. Apply Richard\'s patch (gpatch -p1 -i patchfile)
        4. sh Configure
        5. make perldtrace.h
        6. /usr/sbin/dtrace -h -s perldtrace.d -o perldtrace.h
        7. make

   If things go awry, you might find help by asking on the mailing list.

   Since the DTrace Perl provider may be developed further, there is a chance
   that it has changed slightly by the time you are reading this, causing
   these scripts to either break or behave oddly. Firstly, check for newer
   versions of the DTraceToolkit; if it hasn\'t been updated and you need
   to use these scripts immediately, then updating them shouldn\'t take
   too long. The following was the state of the provider when these scripts
   were written - check for changes and update the scripts accordingly,

        provider perl {
            probe sub-entry(subroutine, file, lineno)
            probe sub-return(subroutine, file, lineno)

Tags No tags attached.
Attached Files

- Relationships
related to 0004689assignedbonivart Perl may leak memory in Solaris 8 and 9 

-  Notes
bonivart (manager)
2009-11-28 09:16

New perl 5.10.1 seems to have some DTrace support.
bonivart (manager)
2010-03-31 22:13

Perl 5.10.1 with dtrace support


Looks like Perl will have integrated dtrace support soon. The Install file of the Release Candidate 1 for Perl 5.10.1 states:

On platforms where DTrace is available, it may be enabled by using the -Dusedtrace option to Configure. DTrace probes are available for subroutine entry (sub-entry) and subroutine exit (sub-exit). Here's a simple D script that uses them:
dam (administrator)
2010-08-02 16:17

This should be re-evaluated on respinning Perl.
bonivart (manager)
2011-03-15 23:45

The new packages in [^] supports DTrace:

On 5.11 with 5.9 package:

# perl -V:usedtrace

On 5.11 with 5.10 package:

# perl -V:usedtrace

# perl -v

This is perl 5, version 12, subversion 3 (v5.12.3 (csw-5.12.3)) built for i86pc-solaris-thread-multi

Copyright 1987-2010, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at, [^] the Perl Home Page.

Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker