Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3849614imm; Mon, 6 Aug 2018 11:38:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfdUj708VHh68HWHXiP6VMejJQVCt2PNTMGhyf9uKAR5F6GRX8M75xy6CYF1CMNkydx6YOL X-Received: by 2002:a62:d757:: with SMTP id v23-v6mr11323280pfl.17.1533580710248; Mon, 06 Aug 2018 11:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533580710; cv=none; d=google.com; s=arc-20160816; b=LcA5C8jhwHjTvZdXJgFZGYnlcww/ANPsn+olwzhCmlO39abE+SqPZKYwQndNZycyOq 0mTnbhjSFuZJX6jHzbHH27zabL94D3MjmOAd15OJ4JFks1azaTd988a/aU37CbgLM7rQ d30sbC+QYypIk9nnFh4TUdFLw7sxoAB7v+b8SnZXe9beN7ahhxm+UH1wz6PI/y8NSf8E rAIq4yKTkE3HNTLMhB4A9fFsoE4M8j6gW7K6RKwci7kb6eu1g7R80oOWdldgqOYVcUeI +npU565ZT5yTPWjuk/usJ2YG25V6m4bpaVekOxRMeTqYaUA1aFnxQ8o6xHthcxAIYz51 LaJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=QuvS0ZrAgvYO1U9Q9C5h+IRBAr1L7ds0LzM2HHZuWkk=; b=IJrFLAF+74ojir4/QUfnyBoghf0OGWYBvQ7N+F7CYNDBjFARDi+DXzRi2zGgCV5qku pQNNWREXGKQI7dDfsXYRGolxQaPU8xvtU4IdlPzH4ZsVrSHKaxSa6F3pMR3jcsPgouW5 WKXE3r7fMjJxgNh+4HkK6Dv7ltvx5pkWe0+p5pXJ3AXP23RI1gdVKDRYucwxXX1BzsTx SUe7kkfaeLANkb5OcahM12gUpAvsFKLsYzlfK7Y+7hzm+mIzd3gDqTYzz5k9ZeKbQFZU WMhrvWLKVq9UmgUYVr8BPF9VoveTDWefV/hbkanJiQ8mwNJ2OvMr1O6IXnj9jM7a+xVW UaNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si11452749pge.585.2018.08.06.11.38.14; Mon, 06 Aug 2018 11:38:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387659AbeHFU2u (ORCPT + 99 others); Mon, 6 Aug 2018 16:28:50 -0400 Received: from mga17.intel.com ([192.55.52.151]:46278 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbeHFU2t (ORCPT ); Mon, 6 Aug 2018 16:28:49 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2018 11:18:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,452,1526367600"; d="scan'208";a="78975165" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by fmsmga001.fm.intel.com with ESMTP; 06 Aug 2018 11:07:40 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 12A42301388; Mon, 6 Aug 2018 11:07:40 -0700 (PDT) Date: Mon, 6 Aug 2018 11:07:40 -0700 From: Andi Kleen To: Vasily Gorbik 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 Subject: Re: [PATCH 2/4] trace: avoid calling cc-option -mrecord-mcount for every Makefile Message-ID: <20180806180740.GI4238@tassilo.jf.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > > Top 4 cc-option usages: > 511 -mrecord-mcount > 11 -fno-stack-protector > 9 -Wno-override-init > 2 -fsched-pressure > > To address that move cc-option from scripts/Makefile.build to top Makefile > and export CC_USING_RECORD_MCOUNT to be used in original place. > > While doing that also add -mrecord-mcount to CC_FLAGS_FTRACE (if gcc > actually supports it). > > Signed-off-by: Vasily Gorbik Acked-by: Andi Kleen -Andi