From owner-freebsd-dtrace@FreeBSD.ORG Wed Aug 21 05:00:17 2013 Return-Path: Delivered-To: freebsd-dtrace@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4C9A49D; Wed, 21 Aug 2013 05:00:17 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F174D246F; Wed, 21 Aug 2013 05:00:16 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id o19so187295qap.0 for ; Tue, 20 Aug 2013 22:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=J1HPrLgQ8fQjbrHFM0ua/vcLKtp92r1grSvk1DL8vPs=; b=dGYKNu2tml+M04HzChzYSYMQUls5jZcrGik8IPb0CX31LD/PzTHCEN5jzcGAm8J+gk Gh5HY6Zl0lVUjgmTY9E25Upc3vHbwJpLSaI+vqCchPoDZqysUCnznuGOE2NM2I3yQBoN BiD/BpGNE272P9TbRBx0nj0CN5h7w6lpALwYSxIQRIbx4tpqDG0+5fp8nORwRRZxT16L zRy1MMhRKtF6/qttbjPXYHZUbbZAy9D7YptnVWYjGUlyse/JIe59/h3HrSQoQ4cnFbAL HtPqjMtQFfCUxNwnFOi+/fTaIHfg1TFcsoRka6et4soeJ+foVBsdGvTYpoAiT5m/ziqf mk7A== X-Received: by 10.224.80.9 with SMTP id r9mr6255880qak.89.1377061215755; Tue, 20 Aug 2013 22:00:15 -0700 (PDT) Received: from raichu (24-212-218-13.cable.teksavvy.com. [24.212.218.13]) by mx.google.com with ESMTPSA id m8sm8861411qay.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Aug 2013 22:00:15 -0700 (PDT) Sender: Mark Johnston Date: Wed, 21 Aug 2013 01:00:10 -0400 From: Mark Johnston To: freebsd-net@freebsd.org, freebsd-dtrace@freebsd.org Subject: DTrace network providers Message-ID: <20130821045926.GA17196@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 05:00:17 -0000 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 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/ To run one you just need to execute "dtrace -s