From owner-freebsd-scsi@FreeBSD.ORG Mon May 6 01:49:48 2013 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 30DE8137 for ; Mon, 6 May 2013 01:49:48 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from nm14-vm3.bullet.mail.gq1.yahoo.com (nm14-vm3.bullet.mail.gq1.yahoo.com [98.136.218.254]) by mx1.freebsd.org (Postfix) with SMTP id CC226898 for ; Mon, 6 May 2013 01:49:47 +0000 (UTC) Received: from [98.137.12.191] by nm14.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 01:46:49 -0000 Received: from [98.136.185.42] by tm12.bullet.mail.gq1.yahoo.com with NNFMP; 06 May 2013 01:46:49 -0000 Received: from [127.0.0.1] by smtp103.mail.gq1.yahoo.com with NNFMP; 06 May 2013 01:46:48 -0000 X-Yahoo-Newman-Id: 985494.40466.bm@smtp103.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: oYvru0YVM1mCkzOtLGSjdt9PPP0AlnUKqcyUDxFZhRPc_LU GiVxBq8Ri1oNxqMFAWm9BLQ_hGK7jpZXbswMOIuxixr9qST5uqvU4Gq3zJQ9 yGW4KX_OIF0lnOUIkfMRLTkyq624k21fVI69z3sDiRdpocWVUyyS9iIfSdEA RhkEiHxAtBeelb1E687MmZoKAF2HekgjOaXfrqu5eqohOBJzpDQaadjEpB6I rzUGPa7SBUiS5fKgIgdnDyREGV0z1z4utcXaaucCm6zmo_z5k6P36L3CG7oc ms4efgK7hongMjJbfjmAr99VGtu5RkZU8h2hqdMQ3xFx46nM1pvzbnadglEV JBOEwxOR_TwaAnlNSsXaLflaBIYtG__zS10HE.XIb0wtEcIg2M2IYChyg4pY sDO8Xog0.ARSklVV9zqlVaYf81cEBDJWNXIh_fRq3Laf0BCx4AD.YQdDEZ_6 UDFTVEInu1Id9D5gjxyhTcR557ao8XhsPSt_9B_QvN299CRlOAzXhbAFNeI0 DdV9h1QnFpkR4VIehCLv_htsfaIMsbDdgvJ_HNzbm0IqZwOltVVSZ1WzLDLg cnolBXspG1jpN8OA11joEEyh2ZOFDjCXFEP46pbqffpUoz0_pA_OlNjwuzT8 4p9M9fQXBnqqnUQWU1k8beuyQBzNYD009Eau398pK3qkNLOgCNVMTGhSK4f5 SgUST3b1pjCWyxox8HWaxrchQmTouE1jNXt59RvhNb9wSbh5dCnOpr6egThl cNx2QFUfI025G1rCwvIwoHwuYGUupMnw_hFH0rTSBq4Ezv0EWpj0LrUnfevC PUefcNQSEctA52aBniIhh0OAtiCUAmSxwrQWFIswzA31RCSt4s5yKPYX_ubR PQu6SkJPdXznKoraP.enlj8dXSzhHSV0xwmup X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf X-Rocket-Received: from [192.168.0.102] (pfg@190.157.126.109 with plain) by smtp103.mail.gq1.yahoo.com with SMTP; 05 May 2013 18:46:48 -0700 PDT Message-ID: <51870B8F.5040306@FreeBSD.org> Date: Sun, 05 May 2013 20:46:55 -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: freebsd-scsi@FreeBSD.org Subject: Reference documentation for a scsi DTrace provider. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 01:49:48 -0000 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. 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, Pedro.