From owner-freebsd-stable@FreeBSD.ORG Sun Dec 5 18:02:09 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 950DD106566C for ; Sun, 5 Dec 2010 18:02:09 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 485E68FC15 for ; Sun, 5 Dec 2010 18:02:08 +0000 (UTC) Received: by qwj9 with SMTP id 9so5856431qwj.13 for ; Sun, 05 Dec 2010 10:02:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=Aw5g3R7NuQABRRNziNCL2fmk+ynqVH8xd0K8nG4r8Z8=; b=Y5uK531/EW9RMYKJBi7jsCmW5u66Y97UuGdb9CRnJewBgZWlIaU1Qhqq85s/w6CmIL 7tLb1rCJxVTPPxYcyb0ZOeUdG+QCmRmR5fhTUtyoAVCYrnT9pzv3O/1TGCAMLlFow/U3 ZehCUR2Oj+rzdC+Kvv4+CNKUMUVImqtmhwRU0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=Yw4VSGQPIA1em/lvcH5N1GFf1McyndP+VwwroEZ5CSSP7RTLyW0TFLRs58OyF/sIT/ 6DpgCi/JzTWC7ovMHCNyARR70etUMmLWqchizBUQOHTdK/3gFYhJW4dzbPnwoq71Yahq wO8ZWwexrY6lTYgke96yEcQG0CC5ddIANEc90= MIME-Version: 1.0 Received: by 10.229.82.10 with SMTP id z10mr3577797qck.98.1291572128395; Sun, 05 Dec 2010 10:02:08 -0800 (PST) Sender: artemb@gmail.com Received: by 10.220.177.195 with HTTP; Sun, 5 Dec 2010 10:02:08 -0800 (PST) In-Reply-To: References: Date: Sun, 5 Dec 2010 10:02:08 -0800 X-Google-Sender-Auth: VckFef6V6xZkAOVojWAJRD8y7oc Message-ID: From: Artem Belevich To: Thomas Zander Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable Subject: Re: DTrace (or other monitor) access to LBA of a block device X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Dec 2010 18:02:09 -0000 > GEOM sounds like a good candidate for probing of that kind. > > sudo dtrace -n 'fbt:kernel:g_io_deliver:entry { printf("%s %d %d > %d\n",stringof(args[0]->bio_from->geom->name), args[0]->bio_cmd, > args[0]->bio_offset, args[0]->bio_length); }' By the way, in order for this to work one would need r207057 applied to -8. Any chance that could be MFC'ed? http://svn.freebsd.org/viewvc/base?view=revision&revision=207057 --Artem