From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 9 20:18:39 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E390BF00 for ; Mon, 9 Mar 2015 20:18:39 +0000 (UTC) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1FB65FE for ; Mon, 9 Mar 2015 20:18:39 +0000 (UTC) Received: by paceu11 with SMTP id eu11so61270672pac.4 for ; Mon, 09 Mar 2015 13:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=95pk4zS4AVIbb7snO78kWj/YkZZWBXZqA4OzfQwLYII=; b=i39dgvrdb52dnq0oiiyBLvm643zFMT21EGUzHwblreEGm7STJdLq4EYFDBq2WZ0caq whlyoQsVTYHwHrrFvFT5njO8DPxq6084WkYkx5eB6z7U6Q4kZktJ7GnFxgjOcZBIRfxy 2ZDvIQNRuSfeF1mAjXfgOHqfzvVKUL6QyZvLzhMHuipmJ+P2POGYoS1huhK3Uj6BpCdA FGi0DHdoUxJDxrEIvjDLkl9phe339GyMIZVUNROFsqVlyzAbMc1mpsNpXKwHWtdDiA6E bE+7A1HNoLXl74BW4hWrijHFNas67xkE4Uv7JVIRj92DqhvZeQIV75hwKlOnO3u9Ufp5 YCwQ== X-Received: by 10.70.0.207 with SMTP id 15mr6677276pdg.56.1425932318880; Mon, 09 Mar 2015 13:18:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.179.203 with HTTP; Mon, 9 Mar 2015 13:18:07 -0700 (PDT) From: Yue Chen Date: Mon, 9 Mar 2015 16:18:07 -0400 Message-ID: Subject: [Rebuild Kernel] Part of the kernel functions are not recompiled when rebuilding the kernel To: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Mon, 09 Mar 2015 20:18:40 -0000 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