From owner-freebsd-current@FreeBSD.ORG Sun Sep 4 18:01:21 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C38B110656D1 for ; Sun, 4 Sep 2011 18:01:21 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 7E6378FC1C for ; Sun, 4 Sep 2011 18:01:21 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAJS8Y06DaFvO/2dsb2JhbABBFoQ3pROBRgEBAQECAQEBASArIAsbDgoCAg0ZAiMGAQkmBggHBAEcBIdSBKZvkDSBLIQtgREEkRyCEol8hy0 X-IronPort-AV: E=Sophos;i="4.68,329,1312171200"; d="scan'208";a="133232078" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 04 Sep 2011 14:01:20 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 76053B3F36; Sun, 4 Sep 2011 14:01:20 -0400 (EDT) Date: Sun, 4 Sep 2011 14:01:20 -0400 (EDT) From: Rick Macklem To: Brandon Gooch Message-ID: <1186868752.775693.1315159280432.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <20110904162102.GA30321@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.203] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: FreeBSD-Current Subject: Re: newnfs user setup 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: Sun, 04 Sep 2011 18:01:21 -0000 Brandon Gooch wrote: > On Fri, Sep 02, 2011 at 08:25:05PM -0400, Rick Macklem wrote: > > Brandon Gooch wrote: > > > On Thu, Sep 1, 2011 at 8:09 PM, Brandon Gooch > > > wrote: > > > > On Fri, May 27, 2011 at 8:09 AM, Rick Macklem > > > > > > > > wrote: > > > >>> On Thu, 26 May 2011, Rick Macklem wrote: > > > >>> ... > > > >>> > ??http://people.freebsd.org/~rmacklem/dtrace.patch > > > >>> > > > > >>> Hmm. Is it just me? > > > >>> Trying to test the patch I get: > > > >>> > > > >>> (fs)(root) patch -C < dtrace.patch > > > >>> Hmm... I can't seem to find a patch in there anywhere. > > > >>> > > > >> Here's how I apply the patch. > > > >> - download dtrace.patch to somewhere, lets say /tmp, then > > > >> # cd /usr/src/sys <-- sys subdirectory of a current head, > > > >> ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? which you don't mind messing > > > >> up > > > >> ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? doesn't have to be at > > > >> /usr/src/sys, > > > >> ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? of course. > > > >> # patch -p1 < /tmp/dtrace.patch > > > >> > > > >> rick > > > >> > > > > > > > > What's the status on this patch? It would be nice to get > > > > dtrace/newnfs > > > > going for 9.0...it's not too late, right? > > > > > > > > I'll test the patch too BTW :) > > > > > > > > -Brandon > > > > > > > > > > So it looks like the patch was committed to HEAD, but the bits to > > > support the New NFS implementation were never flipped on -- is > > > that > > > for a good reason? > > > > > I know nothing about Dtrace, so if something needs to be > > changed/fixed, > > someone who understands these things will have to let me know. > > > > When I built a kernel with "options KDTRACE_HOOKS" and set > > dtraceall_load="YES" in /etc/rc.conf, > > it booted and > > # dtrace -l > > - seemed to find the stuff (it's called "dtnfscl", btw). > > > > Someone told me that's how you check it's loaded and that's all I > > know how to do w.r.t. dtrace. > > > > If you can test/debug it, that would be great, rick > > Actually, the problem is not with DTrace functioning, but with the > dtnfsclient.ko module: > > brandon@m6500:~$ sudo kldload dtnfsclient > kldload: can't load dtnfsclient: Exec format error > > brandon@m6500:~$ dmesg > ... > link_elf_obj: symbol nfsclient_accesscache_flush_done_id undefined > linker_load_file: Unsupported file type > ... > > Any hints on debugging undefined symbols? > dtnfsclient.ko is for the old nfs client. You either need to build a kernel with: options NFSCLIENT OR kldload nfsclient.ko However, if you want to test dtrace with the new (default for 9) NFS client, the dtrace module is dtnfscl.ko. rick ps: The above only applies to 9/-current, of course. > -Brandon > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org"