From owner-freebsd-current@FreeBSD.ORG Mon Feb 23 06:56:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AC3D16A4CE for ; Mon, 23 Feb 2004 06:56:23 -0800 (PST) Received: from ftp.bjpu.edu.cn (ftp.bjpu.edu.cn [202.112.78.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E07A343D1D for ; Mon, 23 Feb 2004 06:56:22 -0800 (PST) (envelope-from junsu@delphij.net) Received: from localhost (localhost [127.0.0.1]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id D0ECC52C7 for ; Mon, 23 Feb 2004 22:56:20 +0800 (CST) Received: from ftp.bjpu.edu.cn ([127.0.0.1]) by localhost (ftp.bjpu.edu.cn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 39320-05 for ; Mon, 23 Feb 2004 22:56:20 +0800 (CST) Received: from beastie.frontfree.net (beastie.frontfree.net [218.107.145.7]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id 5943D52C3 for ; Mon, 23 Feb 2004 22:56:19 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id 4941C1161F for ; Mon, 23 Feb 2004 22:56:13 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00330-01 for ; Mon, 23 Feb 2004 22:53:45 +0800 (CST) Received: from mail.frontfree.net (unknown [211.161.222.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id 13807114F4 for ; Mon, 23 Feb 2004 22:51:08 +0800 (CST) To: "current@freebsd.org" References: Message-ID: From: "Jun Su" Content-Type: text/plain; format=flowed; delsp=yes; charset=gbk MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 23 Feb 2004 22:50:25 +0800 In-Reply-To: User-Agent: Opera M2/7.50 (Win32, build 3613) X-Virus-Scanned: by Frontfree Secure Mail II at frontfree.net X-Virus-Scanned: by amavisd-new at frontfree.net Subject: Re: Call for Testers: Kernel GCOV X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 23 Feb 2004 14:56:23 -0000 Sorry to reply myself. One more piece of tech detail information. The patch is for the following purpose: 1. Enable kernel gcov in all platform instead of i386. I made the patch, however I have not env to test. 2. Remove tcov SYSINIT. Use the method for SYSCTL to register the file into bb. Please check the method in kern_linker.c. Register bb when kernel module is loaded, and unregister bb when it is unloaded. 3. Enable gcov for kernel modules. Add -DCOVERAGE compile option for kmod compiling. And use the kernel ldscrit to link kmod instead of the original default ldscript. Thanks, Jun Su