From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54372 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726902AbeHGONm (ORCPT ); Tue, 7 Aug 2018 10:13:42 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w77Bx3RT146536 for ; Tue, 7 Aug 2018 07:59:41 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2kq9604cgs-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 07 Aug 2018 07:59:41 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Aug 2018 12:59:37 +0100 Date: Tue, 7 Aug 2018 13:59:31 +0200 From: Vasily Gorbik Subject: Re: [PATCH 2/4] trace: avoid calling cc-option -mrecord-mcount for every Makefile References: <20180806180740.GI4238@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180806180740.GI4238@tassilo.jf.intel.com> Message-Id: Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Andi Kleen Cc: Masahiro Yamada , Michal Marek , Martin Schwidefsky , Heiko Carstens , Steven Rostedt , Ingo Molnar , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org On Mon, Aug 06, 2018 at 11:07:40AM -0700, Andi Kleen wrote: > On Mon, Aug 06, 2018 at 03:17:44PM +0200, Vasily Gorbik wrote: > > Currently if CONFIG_FTRACE_MCOUNT_RECORD is enabled -mrecord-mcount > > compiler flag support is tested for every Makefile. > > Good catch. Does it make a measurable compile time difference? > A bit more than couple of seconds, but it does make a difference for a delta build: with patch: real 0m9.405s user 0m6.966s sys 0m2.287s without: real 0m12.153s user 0m9.058s sys 0m3.026s with -j48 on s390 24 cores lpar: with patch: real 0m1.949s user 0m7.034s sys 0m2.400s without: real 0m2.255s user 0m9.243s sys 0m3.266s > > > > Top 4 cc-option usages: > > 511 -mrecord-mcount