From owner-freebsd-current@FreeBSD.ORG Sat Feb 16 12:51:58 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0821316A417 for ; Sat, 16 Feb 2008 12:51:58 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 647A513C469 for ; Sat, 16 Feb 2008 12:51:56 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by rv-out-0910.google.com with SMTP id g13so825341rvb.43 for ; Sat, 16 Feb 2008 04:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=pAFNtmNRlp3UvHv4tVZkTBdCMV6xdmTnNXkBjkI1QAM=; b=kMhNUR6eH9vvokEOvr8nbcFQW7imZ1w5OjE5gOiAOMDvLQZszg8yRNZBW/M3+E1SC6y3v9bz9q9W9KQw7cqSYiHXWNkssNlADSPB8cW18RxuBw1OYW8LI2newPmTGtW63PARiilUTCRQpe9V6eHAWO8Ui+xLfix3+1iHjggP3GQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=vFOVFUcypmLOMWzWzw7Qs1ZZLnhOf12VBTrUJdx0GaCkMHjTxaEP00ypSvo/oGSwVFkvaqDQJxZWJ5AwAAMqdUVzdxl+6vy2UJgMlqG4rsWShggba2iLPWVHj9rlHGvdR8r5mU6E3yOj5YvsWfYLwvCs9zwlvi9Do1WSgqod/nQ= Received: by 10.140.179.25 with SMTP id b25mr2568611rvf.186.1203166305894; Sat, 16 Feb 2008 04:51:45 -0800 (PST) Received: by 10.141.170.18 with HTTP; Sat, 16 Feb 2008 04:51:45 -0800 (PST) Message-ID: <2e77fc10802160451p4a911832t7352c8cef826c04a@mail.gmail.com> Date: Sat, 16 Feb 2008 14:51:45 +0200 From: "Niki Denev" Sender: ndenev@gmail.com To: "John Birrell" In-Reply-To: <20080210224247.GA70317@what-creek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080210224247.GA70317@what-creek.com> X-Google-Sender-Auth: 42884df1e5fa6c4f X-Mailman-Approved-At: Sat, 16 Feb 2008 13:27:06 +0000 Cc: current@freebsd.org Subject: Re: New DTrace source snapshot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2008 12:51:58 -0000 On 2/11/08, John Birrell wrote: > This one fixes problems with the previous one: > > - buildkernel would fail because NO_CTF=1 was not set when > building the lone kernel build tool. > - A number of things were missing from the dtrace kernel > module on i386. > - Missing syscall names in the kernel without witness have > been resolved so this snapshot should build with and without > witness, invariants, smp etc. > > > > Known problems: > - This is a snapshot of current which contains lock order > reversal warnings. These are not related to the DTrace-specific > code. > - ustack() as reported by Drew hasn't been ported yet, so don't > expect it to do anything. > - On i386 mp_maxid in the kernel doesn't behave the same way that > it does on amd64. Work-around code exists for this, but it is > less than optimal. > - A few of the tests that pass on amd64 don't work on i386. The > causes are under investigation. The worst one is the tailcall > test which causes the machine to reboot. Ugh. > > Note: > - This snapshot should build cleanly on either a CURRENT or a > RELENG_7 system. If not, please tell me. RELENG_6 users should > upgrade to RELENG_7 first or contact me. The tool bootstrap > will fail to build when hosted on RELENG_6. > - It should be ABI compatible with CURRENT and RELENG_7. If > not, please tell me. > - This snapshot extends the basic OpenSolaris DTrace functionality > to support: > > printm(const size_t bufrsize, uintptr_t *memref); > > where: > > 'memref' is an an array of 2 uintptr_t entries -- address and > size. > > Usage example: > > printm(500, memref(mypointer, mysize)); > > reserves buffer space of 500 bytes to trace memory at address > 'mypointer' with size 'mysize'. Both 'mypointer' and 'mysize' > can be variables in the D script. > > By contrast, OpenSolaris only supports tracemem(ptr, const size) > where 'size' is fixed at compile time. This is not terribly > useful when tracing protocols or variable read sizes where the > data indicates how long the memory object is. > > Target audience: > > I'd like to get more people involved with running this code. > If you just like to follow FreeBSD current and don't even try > to contribute stuff back... this snapshot is something you > could try. I need some feeback from people who just use > FreeBSD-CURRENT. > > -- > John Birrell Dtrace on FreeBSD is really amazing! Thanks! I have one question though, is the anonymous tracing during boot supported on fbsd? I have created the required /boot/dtrace.dof file, and set dtrace_boot="YES" in loader.conf, but after reboot dtrace -ae doesn not produce anything --Niki