Received: by 10.192.165.148 with SMTP id m20csp1008851imm; Wed, 2 May 2018 12:27:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrpcNKPn2gds73+HmOCVBp6wPiuZIfGHzZ04G3hMHL6bKyOR7qAnjdaXOE7Ra1nk9tdVI1n X-Received: by 10.98.89.209 with SMTP id k78mr20478105pfj.54.1525289240037; Wed, 02 May 2018 12:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525289240; cv=none; d=google.com; s=arc-20160816; b=iM2s6c+bZsr1FcZmCqzs61OPqRl7DXpA+Za2O+BKe1sgi/AyFlSR7+UI4QheK/MzJ8 x7tUhjkau1RlQ3qHaPyfFrycsa2XCSSaL5K98yhq+mMRxzDGMXVJVoq5xRJ8x6ArPjeE +6fXNfbzWDoOURsRxK2Y/6Pe7dg2Iybh8M5IrA7NFwhuofiTYTENY6tIcd2qCHSyWzhk JUiqQiCP7cmqLFnPNmhe8wI5/LAhVShur/djx1+21A1H/2ZrdcsAvTehW2hXQPSE++OH Hu8BOc19K7TCtEW7PZc9Yqr/GAz/sdYm2lJQGsUe3qNYbDFB4b11kMDGmaOz9CAG0MWH ZSRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=emhXZGm51tS8MiLygWNV5uVq1WZq8HwY/n7faaTmSAU=; b=LKWDilVgAojCzZ52gmco7RSW7sk4/6Bb2r3skcuIUw7Do4qgQRk97cDzE43rR44dIT 8gxFmJEG58b3j9v/hrIqMNmVGpiJuLxXnIb3lGcZ7Y4HpseHX4KBmmLRgZ+bsCUFh1lF PnctEBD6CWRLlSKwC3e1cCJ55XrydOeQ3PR5k1IcxICBW58l2EIq1vFRVNyN9kHrloev +zSsL8HEM26jcBpei7wVM23otimXD7bm7kfqcMgxNpw6lHs/rd5BRRGKfMRsm4pWTbVG o+SKJXtH4egnjUzm1c2Pd9MqPJriI+7kR3H1yk0mpD4N1UVixUUq8J/KxgnsZEQMXu21 A7zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=IZh3ER+F; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6-v6si10011328pgp.258.2018.05.02.12.26.49; Wed, 02 May 2018 12:27:19 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=IZh3ER+F; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751202AbeEBT0g (ORCPT + 99 others); Wed, 2 May 2018 15:26:36 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57398 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbeEBT0e (ORCPT ); Wed, 2 May 2018 15:26:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=emhXZGm51tS8MiLygWNV5uVq1WZq8HwY/n7faaTmSAU=; b=IZh3ER+FDmZilvFUnnlUx3Y1X TNsZd4opcu9iAPM94lO6Qs+VCJBgox3MHmuJRYsWHjVGjPNKGTiteeqmiyfW3C4o7uzNMg1Z2WrrH XyX8rVcFHWrIQbXLatavaxAfOoBcbmQH3ni1nZLEFLJh4Yks9YeYACh8WwZP1FzcqeMrV34lnK9IU pxzEQLc+sHTb1YnOgosisu2T4Z11aMpYgLoekoLCicVVQYsh4mmBWnrXFincvyFcvXv/AUHCm9d2u 5mR97Q6hXzwRADh5oP+zl3scJPibp4A/g0jAMJWkOgpiHLqd8/YJGJ0OUm70btkintnGIe7do75Jw x67YfMGWw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fDxOa-0004sf-6Y; Wed, 02 May 2018 19:26:32 +0000 Subject: Re: [PATCH v2 4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization To: changbin.du@intel.com, yamada.masahiro@socionext.com, michal.lkml@markovi.net, tglx@linutronix.de, mingo@redhat.com, akpm@linux-foundation.org Cc: rostedt@goodmis.org, x86@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, arnd@arndb.de, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org References: <1525268700-10631-1-git-send-email-changbin.du@intel.com> <1525268700-10631-5-git-send-email-changbin.du@intel.com> From: Randy Dunlap Message-ID: <34ba017d-2e94-7411-a675-0e3e2a6b0682@infradead.org> Date: Wed, 2 May 2018 12:26:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1525268700-10631-5-git-send-email-changbin.du@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/02/2018 06:44 AM, changbin.du@intel.com wrote: > From: Changbin Du > Sorry, I missed one: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index ab55801..e264199 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -216,6 +216,27 @@ config NO_AUTO_INLINE > > If unsure, select N. > > +config DEBUG_EXPERIENCE > + bool "Optimize for better debugging experience (-Og)" > + default n > + select NO_AUTO_INLINE > + depends on !CC_OPTIMIZE_FOR_SIZE > + help > + This will apply GCC '-Og' optimization level which is supported > + since GCC 4.8. This optimization level offers a reasonable level > + of optimization while maintaining fast compilation and a good > + debugging experience. It is similar to '-O1' while preferring to > + keep debug ability over runtime speed. The overall performance > + will drop a bit (~6%). > + > + Use only if you want to debug the kernel, especially if you want > + to have better kernel debugging experience with gdb facilities > + like kgdb or qemu. If enabling this option breaks your kernel, > + you should either disable this or find a fix (mostly in the arch > + code). Currently this option has only be tested on x86_64 platform. been tested > + > + If unsure, select N. > + > config ENABLE_WARN_DEPRECATED > bool "Enable __deprecated logic" > default y > -- ~Randy