From owner-freebsd-dtrace@FreeBSD.ORG Wed Aug 21 06:45:02 2013 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9853F589 for ; Wed, 21 Aug 2013 06:45:02 +0000 (UTC) (envelope-from brendan.gregg@joyent.com) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 720392B23 for ; Wed, 21 Aug 2013 06:45:02 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id lb1so473180pab.26 for ; Tue, 20 Aug 2013 23:44:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=TJ2/FyNp0IQDh+qOE7SYETPkg2/rAGZ0z69g7yZy4ts=; b=pR52z0a03bmZvDVD57Rrgbax36P6Gu/tPFkS/Mi+BmHsZZKx2X8PKCeu3v3mjJp/Um lP+Xze8AmIyFROYUaUZgc2WJn0SejWncCNNrBQb35frpQlDAH1DnmNshZA+YvNcHBg2z SRjsp6/GQYnF+GCr/t0hvbW9xTlIlwx4ZYr1J+IXFBoDufqodEJp5BO5mWOJ/V00PEDU XOMG8CeKQNHfB0JKctY6La2QpEuTRWLX4Fsh2RSLRhyz1xMbFTQ1prLAWrV4hIX9tTkZ 5l3HhaAP8UKQkqpnPqE4QVA9S95O18gHesSQwGWEw4/tQTkTO1+uIaCGNJ0IptkLHaLs fxvg== X-Gm-Message-State: ALoCoQkh9XSsVLlXvPRF0HoStWhWou7xSIPjR19RL3dJ28TEmgKi+2cgrB8mRNafgMW/A3Vrk2KD MIME-Version: 1.0 X-Received: by 10.67.24.7 with SMTP id ie7mr7810330pad.112.1377067496223; Tue, 20 Aug 2013 23:44:56 -0700 (PDT) Received: by 10.70.55.34 with HTTP; Tue, 20 Aug 2013 23:44:56 -0700 (PDT) In-Reply-To: <20130821045926.GA17196@raichu> References: <20130821045926.GA17196@raichu> Date: Tue, 20 Aug 2013 23:44:56 -0700 Message-ID: Subject: Re: DTrace network providers From: Brendan Gregg To: Mark Johnston Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-net@freebsd.org, freebsd-dtrace@freebsd.org X-BeenThere: freebsd-dtrace@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "A discussion list for developers working on DTrace in FreeBSD." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2013 06:45:02 -0000 G'Day, On Tue, Aug 20, 2013 at 10:00 PM, Mark Johnston wrote: > Hello! > > I've ported the ip, tcp and udp DTrace providers to FreeBSD, following > the Solaris documentation here: > > https://wikis.oracle.com/display/DTrace/ip+Provider > https://wikis.oracle.com/display/DTrace/tcp+Provider > https://wikis.oracle.com/display/DTrace/udp+Provider > > Fantastic! > My implementation of these providers makes use of dynamic translators, > for which FreeBSD support was added in r254468; this patch won't compile > with earlier revisions. The use of dynamic translators means that > existing DTrace scripts which use these providers will just work when run > on FreeBSD - no modifications needed. In particular, all of the examples > in the links above will work properly on FreeBSD with my diff. > > I've collected a bunch of example scripts for these providers and placed > them here: > > http://people.freebsd.org/~markj/dtrace/network-providers/ > > They look familiar. :-) Which is a good sign for this port, as that's what's supposed to happen: the same scripts run on any OS. To run one you just need to execute "dtrace -s