From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638AbdF2UiN (ORCPT ); Thu, 29 Jun 2017 16:38:13 -0400 Received: from terminus.zytor.com ([65.50.211.136]:40159 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751532AbdF2UiM (ORCPT ); Thu, 29 Jun 2017 16:38:12 -0400 Date: Thu, 29 Jun 2017 13:36:57 -0700 From: "tip-bot for Kirill A. Shutemov" Message-ID: Cc: linux-kernel@vger.kernel.org, fengguang.wu@intel.com, tglx@linutronix.de, kirill.shutemov@linux.intel.com, rostedt@goodmis.org, hpa@zytor.com, mingo@kernel.org Reply-To: tglx@linutronix.de, kirill.shutemov@linux.intel.com, fengguang.wu@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, rostedt@goodmis.org In-Reply-To: <20170627115948.17938-1-kirill.shutemov@linux.intel.com> References: <20170627115948.17938-1-kirill.shutemov@linux.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/mm] x86/ftrace: Exclude functions in head64.c from function-tracing Git-Commit-ID: bb43dbc5e09d52c6085dfee65f4f923b3fbcd1d4 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: bb43dbc5e09d52c6085dfee65f4f923b3fbcd1d4 Gitweb: http://git.kernel.org/tip/bb43dbc5e09d52c6085dfee65f4f923b3fbcd1d4 Author: Kirill A. Shutemov AuthorDate: Tue, 27 Jun 2017 14:59:48 +0300 Committer: Thomas Gleixner CommitDate: Thu, 29 Jun 2017 22:33:27 +0200 x86/ftrace: Exclude functions in head64.c from function-tracing A recent commit moved most logic of early boot up from startup_64() written in assembly to __startup_64() written in C. Fengguang reported breakage due to the change. It was tracked down to CONFIG_FUNCTION_TRACER being enabled. Tracing this function is not possible because it's invoked from the earliest boot stage before the relocation fixups have been done. It is the function doing the relocation. Exclude it from being built with tracer stubs. Fixes: c88d71508e36 ("x86/boot/64: Rewrite startup_64() in C") Reported-by: Fengguang Wu Signed-off-by: Kirill A. Shutemov Acked-by: Steven Rostedt Signed-off-by: Thomas Gleixner Cc: lkp@01.org Link: http://lkml.kernel.org/r/20170627115948.17938-1-kirill.shutemov@linux.intel.com --- arch/x86/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 4b99423..0db5120 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -18,6 +18,7 @@ CFLAGS_REMOVE_pvclock.o = -pg CFLAGS_REMOVE_kvmclock.o = -pg CFLAGS_REMOVE_ftrace.o = -pg CFLAGS_REMOVE_early_printk.o = -pg +CFLAGS_REMOVE_head64.o = -pg endif KASAN_SANITIZE_head$(BITS).o := n