Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44970 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6579 invoked from network); 15 Jul 2009 06:02:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jul 2009 06:02:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.228 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.219.228 mail-ew0-f228.google.com Received: from [209.85.219.228] ([209.85.219.228:64177] helo=mail-ew0-f228.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/98-57267-6D07D5A4 for ; Wed, 15 Jul 2009 02:01:58 -0400 Received: by ewy28 with SMTP id 28so3047041ewy.23 for ; Tue, 14 Jul 2009 23:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dQaZkCLBPaFPvcF05AvvEfzZzVSWXk73ZKFC1+fiOgg=; b=NdpMolxrMOJDmZ7F7aF+Fj/fAc4lx/CSo6NCQFcgCN7owRa8vohJJ6dXtrMJEcUXfg Zeqhn2OWbIzAFPMZNGjimT0GTnJbscdyNW4KC3PG8zJ1WIXcT37r4I6JSV3IdzaiSaWF Uamgu7ElnaOELvwMa28u51PyDCFcLc7R/89co= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=gRGYavxUEYB5L/Wh7PFlperrUys1HVcg1woVsi3dkk4KLq+Fjo+J2Ci/p1k/VGFkBb zusqxwePQwc869qDaTmuOke67S4BBBJX+KHQwQKFs4PjjxDkMl7AQ6IU6TQ2bTUVz+/w 4D6yxB6VPSOvigNLxuCZztEAXtv/hg74wR1JQ= MIME-Version: 1.0 Received: by 10.210.63.18 with SMTP id l18mr8897504eba.11.1247637714781; Tue, 14 Jul 2009 23:01:54 -0700 (PDT) In-Reply-To: References: Date: Wed, 15 Jul 2009 10:01:54 +0400 Message-ID: To: David Soria Parra Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Patch and RFC for adding DTrace probes to PHP From: indeyets@gmail.com (Alexey Zakhlestin) On Wed, Jul 15, 2009 at 1:31 AM, David Soria Parra wrote: > 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: > > =C2=A0http://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. Also, there is an ongoing effort of adding DTrace support to linux. Blog of the author: http://www.crisp.demon.co.uk/blog/index.html > The patch aims to include static probes into PHP which will better reflec= t > 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: > > =C2=A0http://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. The patch is simple and clean. Just 2 notices.. 1) Zend/zend_dtrace.h file is generated. Are you sure it should be the part of patch? 2) Probes would benefit from having more details (exception-messages, function-arguments, etc.) Other than that, I am all for including this in trunk. Earlier we have it =E2=80=94 earlier we can start tuning it :) --=20 Alexey Zakhlestin http://www.milkfarmsoft.com/