From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 10 07:52:58 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53CCD170 for ; Tue, 10 Mar 2015 07:52:58 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 113C7E4B for ; Tue, 10 Mar 2015 07:52:57 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 52E631FE022; Tue, 10 Mar 2015 08:52:55 +0100 (CET) Message-ID: <54FEA306.4060704@selasky.org> Date: Tue, 10 Mar 2015 08:53:42 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Yue Chen , "freebsd-hackers@freebsd.org" Subject: Re: [Rebuild Kernel] Part of the kernel functions are not recompiled when rebuilding the kernel References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2015 07:52:58 -0000 On 03/09/15 21:18, Yue Chen wrote: > Hi all, > > When I used my customized LLVM (insert some instructions after each basic > block) to rebuild the 10.1-RELEASE kernel, I found that about 10% of the > kernel functions (in a continuous address range, in "objdump -S kernel", > about 79%-88%) are not recompiled with my LLVM (does not have the feature > of my customized LLVM). For example, these functions: > > calc_rebuild_progress > ID_TO_VDEV > ldm_spinup_vdev > hpt27xx_ldm_suspend > ldm_start_rebuild > hptnr_ldm_acquire_lock > __ldm_finish_cmd > > I believe the rebuilding process would do a CLEAN first. Maybe something is > wrong with my building process? I followed the instructions here: > https://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html > > Or these functions are in kernel modules that are statically linked? > > Best regards and thanks, > Yue Hi, Is your source tree is clean from object files? --HPS