Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44964 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36651 invoked from network); 14 Jul 2009 21:45:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Jul 2009 21:45:24 -0000 Received: from [127.0.0.1] ([127.0.0.1:18379]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 4B/20-54820-37CFC5A4 for ; Tue, 14 Jul 2009 17:45:23 -0400 X-Host-Fingerprint: 87.118.104.77 ns.experimentalworks.net Date: Tue, 14 Jul 2009 17:31:26 -0400 Received: from [87.118.104.77] ([87.118.104.77:1705] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/00-54820-E29FC5A4 for ; Tue, 14 Jul 2009 17:31:26 -0400 To: internals@lists.php.net Message-ID: User-Agent: slrn/0.9.8.1pl1 (Debian) X-Posted-By: 87.118.104.77 Subject: Patch and RFC for adding DTrace probes to PHP From: david.soriaparra@sun.com (David Soria Parra) Hi List, in the last months I worked on adding DTrace probes to PHP and would like to start a discussion about the RFC and patch against trunk that can be found at: http://wiki.php.net/rfc/dtrace DTrace is a dynamic tracing framework for Solaris, OpenSolaris, Mac OSX and FreeBSD that can be used to trace running applications on a system based on instrumentation points in the kernel and the application. The patch aims to include static probes into PHP which will better reflect PHP execution from a user persective. At the moment PHP can only be traced with deep knowledge of the executor and it's functions. The patch is based on recent trunk and can be found at: http://patches.experimentalworks.net/dtrace.patch In the current state the patch introduces a wrapper for the current executor to fire function-entry probes. It was mentioned that it might be useful to not use an own funciton for that. As I want to make things cleaner for the current state of review, I decided to use a separate function. The patch was tested on Mac OS 10.5, Solaris 10 and OpenSolaris 2009.06. David