From owner-freebsd-scsi@FreeBSD.ORG Mon May 6 03:13:46 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A06FE6E for ; Mon, 6 May 2013 03:13:46 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm40.bullet.mail.gq1.yahoo.com (nm40.bullet.mail.gq1.yahoo.com [98.136.217.23]) by mx1.freebsd.org (Postfix) with ESMTP id 55F8ABE1 for ; Mon, 6 May 2013 03:13:45 +0000 (UTC) Received: from [98.137.12.56] by nm40.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 03:07:35 -0000 Received: from [208.71.42.201] by tm1.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 03:07:35 -0000 Received: from [127.0.0.1] by smtp212.mail.gq1.yahoo.com with NNFMP; 06 May 2013 03:07:35 -0000 X-Yahoo-Newman-Id: 195375.38553.bm@smtp212.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: MxTlagIVM1k0WRfDndw6w6ErSUdPu_AJopn0zLSPXrcnW3D 0NcJsGBq.KAoAWOG05zeEOa0uE0RMuWdqBZq5nm5NYBu_oxny5rL69r_oWtw 3jDj_8trMzQnDi9ykynkawucUgPrRHEowJGRmDJ8o7Ipmj8Jt6CKGcEg..6p JJqy0kjAEkv5lfsKTgRPmo.1kuPKIZYoWNFmpMBTs9F748ysEg8xorAEeThU WmqS4yjF0fn7UttjeVOp3i675IzxXzmtWR6hCEnXmEENIiYZ6vtIUbut2SPn ois4Dm4i8mA2sDLjpE_Px8buVY0146aWP5ozyQ1ZdCMpgOT39hIvZPB3YFd5 qzqBXOVmH7oX8r2.BKzVjlUe75qAAD7VsnD2xixT6l7EaCWcYY76jq.hXAGw _E__HjfGlmjaUUpIZaOFP6AMlzvzgooEZivdvuS8Cl0lizrWtatNNTzGoiHu _uXDTtTfv95NCEC0WZQRzwlZ8cO9FcO7qdNO2RAMVqDAN1DiqXg9lK7DNnAb oqSbM96UWW520sbEioHJmXHfIgdNhg6U18TVeP1eyyymzMl_UA9uwZahbrXW _d7oQH6OnNiIH5117VjDETz0gPpfm4Oc.ySlSc4Z2XEufa.8BEh8k1oj77FP pXjXRscykedX8rFmfJgogTuzAYP1_dzShHN4ToXEctPhKR1CZX0LXcarm4gC DLph.tiH.sy5EKhYHTdf4ls97CQv2Edz5STdN07i6VZq4Y8rnaCJ22ttkY4s lgrGbGIPhfpFTU_WEfJckVwKIkTkY7E__CCUFVlSJwcUNGMn9_A6dHewvkKA ESilkZrXeNlEPFMHpgA-- X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain) by smtp212.mail.gq1.yahoo.com with SMTP; 05 May 2013 20:07:35 -0700 PDT Message-ID: <51871E7C.90108@FreeBSD.org> Date: Sun, 05 May 2013 22:07:40 -0500 From: Pedro Giffuni Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: "Kenneth D. Merry" Subject: Re: Reference documentation for a scsi DTrace provider. References: <51870B8F.5040306@FreeBSD.org> <20130506022652.GA49892@nargothrond.kdm.org> In-Reply-To: <20130506022652.GA49892@nargothrond.kdm.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2013 03:13:46 -0000 El 05/05/2013 9:26 p. m., Kenneth D. Merry escribió: > On Sun, May 05, 2013 at 20:46:55 -0500, Pedro Giffuni wrote: >> Hello; >> >> By the way Solaris implemented some DTrace providers it looks like we >> need a scsi provider as a starting point for a iscsi provider, which in >> turn (plus the IP provider) is also a requirement to get NFSv4/NFSv3 >> providers. > > Why do the NFS providers depend on an iSCSI provider? > That's a good question. According to the NFSv3 provider documentation: https://wikis.oracle.com/display/DTrace/nfsv3+Provider ____ All NFS operation probes have the first argument in common: args[0] conninfo_t * socket connection information The conninfo_t structure is already used by the iSCSI target provider (iscsi) and the NFS v4 provider (nfsv4), and is intended for use by all provider which are providing some higher level protocol (e.g. iscsi, nfs, http, ftp). _____ Regards, Pedro. >> I suspect there may be some interest on having a scsi DTrace provider >> for it's own purposes, so JIC someone wants to try and at least for >> documentation purposes I will share some links I found on how it was >> done for OpenSolaris. >> >> The original commit in OpenSolaris seems to have been this: >> >> https://bitbucket.org/illumos/illumos-gate/commits/c4b38ec17f4eaacad8868141411d7b513910ad4a >> >> Then there is an interesting blog posting that accompanies it: >> >> "Adding a Dtrace provider to the kernel" >> https://blogs.oracle.com/chrisg/entry/adding_a_dtrace_provider_to >> >> And some general introductory documentation for reference: >> >> http://www.ibm.com/developerworks/aix/library/au-dtraceprobes.html >> >> https://wiki.freebsd.org/DTrace/HowToAddSDTProbes >> >> Hope someone finds this helpful, > > It is, thanks! > > It would be great to have a SCSI provider, and an iSCSI provider to go > along with the iSCSI work that Edward Napierala is > doing. > > I don't have the time, but perhaps someone else will. > > Ken >