From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbdLAAWj (ORCPT ); Thu, 30 Nov 2017 19:22:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:44280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbdLAAWg (ORCPT ); Thu, 30 Nov 2017 19:22:36 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A463A2187C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Thu, 30 Nov 2017 19:22:33 -0500 From: Steven Rostedt To: Andi Kleen Cc: linux-kernel@vger.kernel.org, x86@kernel.org, samitolvanen@google.com, alxmtvv@gmail.com, linux-kbuild@vger.kernel.org, yamada.masahiro@socionext.com, akpm@linux-foundation.org, Andi Kleen Subject: Re: [PATCH 11/21] trace: Use -mcount-record for dynamic ftrace Message-ID: <20171130192233.181dad47@gandalf.local.home> In-Reply-To: <20171127213423.27218-12-andi@firstfloor.org> References: <20171127213423.27218-1-andi@firstfloor.org> <20171127213423.27218-12-andi@firstfloor.org> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Nov 2017 13:34:13 -0800 Andi Kleen wrote: > From: Andi Kleen > > gcc 5 supports a new -mcount-record option to generate ftrace > tables directly. This avoids the need to run record_mcount > manually. > > Use this option when available. > > So far doesn't use -mcount-nop, which also exists now. > > This is needed to make ftrace work with LTO because the > normal record-mcount script doesn't run over the link > time output. > > It should also improve build times slightly in the general > case. > > Cc: rostedt@goodmis.org > Signed-off-by: Andi Kleen > --- Hi Andi, Thanks for sending this. I'm currently trying to catch up on all the changes that need to get into 4.15 and will be doing a bit of traveling. I plan on looking at this in a week or two, and add it to the 4.16 queue. -- Steve