Anonymous | Login | 2024-05-08 04:45 CEST |
Main | My View | View Issues |
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, http://blogs.sun.com/alanbur/entry/dtrace_and_perl [^] To get this and these scripts working, the rough steps are, 1. Download and extract perl 5.8.8 (www.cpan.org) 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 dtrace-discuss@opensolaris.org 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 | ||||||
|
Notes | |
(0007053) bonivart (manager) 2009-11-28 09:16 |
New perl 5.10.1 seems to have some DTrace support. |
(0007786) bonivart (manager) 2010-03-31 22:13 |
Perl 5.10.1 with dtrace support WEDNESDAY, AUGUST 26. 2009 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: |
(0008158) dam (administrator) 2010-08-02 16:17 |
This should be re-evaluated on respinning Perl. |
(0008912) bonivart (manager) 2011-03-15 23:45 |
The new packages in http://buildfarm.opencsw.org/experimental.html#perl-dublin [^] supports DTrace: On 5.11 with 5.9 package: # perl -V:usedtrace usedtrace='undef'; On 5.11 with 5.10 package: # perl -V:usedtrace usedtrace='define'; # 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 http://www.perl.org/, [^] the Perl Home Page. |
Copyright © 2000 - 2008 Mantis Group |