Received: by 10.192.165.148 with SMTP id m20csp1622551imm; Sat, 5 May 2018 17:28:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpBR7vlp095RbppH4aHvAbbZdOXVT3AGwaxQ23GUXzDXyBEoAUvHhqNoPkqAFNLFwMeMHVA X-Received: by 2002:a63:78c3:: with SMTP id t186-v6mr26231047pgc.97.1525566487763; Sat, 05 May 2018 17:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525566487; cv=none; d=google.com; s=arc-20160816; b=Ja+q+WwcrLhX3rT5212kGdkkLQ8k61YmUigZRCMN0ZHMKuu8ZdkkWlqfs11BB1F7yx 2lOsjp384fnY0H5j8SwV6yTc5TXSxpoM0Y0fVjVWTKa7OND4UaYmJDXWo6WhhFVRhPFP +EO7bnzt4sQCQl3VfabzKHNB8XlDEevOYUxCbMEM6G9eJ6/etoIhaYjl8rStmv3oISyf KzNDYobohMqS82et33OKHFU6UiePVPpRhGOdo3Ho6ev6xYwwJUGd+iyeC9qKnqwmNevZ M10ixxACGqa8Hy/WjVnfp82Zg9ETPiyaGzS09h/hk6FmfA4FavFRdLipkaK/ziVGUmTv Wp7g== 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=mhSsb/LKqOfpMq1sdRMBrhsItaQmFqHBpyPXngOuIdQ=; b=o7gCiqIfXxW2mp/pT6Yb3QstT/XY4dSx0DyXZ54kmQml7Nrn5UwSSMQ3qUa0Byrmlw /99IgA4yEJ+J4wqo/Xuf2rWcMmWhsh/Le/XZEW1f9TUB1TR5d+EtLB0t8/9AMvicseXv 8shZR5GgRgDC31QLZhyBP8AlPFSAIAY7Gty3MFfJkerM8DSHLrm1Zen86V/sHYw8mJ4c lmVpdvWCvK4OT+4xBMWjD6asple0TUGIXgUKMvQxcrcXM017da4IJ2cw2N7wNqHdW+gO +2Lby9bZBAH/LkV5IHiA0MXYJFFLBLQG+QvNyAdWycUI3PkqK9L5o1YkkZd/MsagGLcc JBzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=s3ganU/t; 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 e1-v6si18813621ple.428.2018.05.05.17.27.39; Sat, 05 May 2018 17:28:07 -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=merlin.20170209 header.b=s3ganU/t; 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 S1751886AbeEFA12 (ORCPT + 99 others); Sat, 5 May 2018 20:27:28 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40308 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbeEFA1Z (ORCPT ); Sat, 5 May 2018 20:27:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=mhSsb/LKqOfpMq1sdRMBrhsItaQmFqHBpyPXngOuIdQ=; b=s3ganU/tVbDByYjZ6m9rZovCUc Cw/VpRrCWa/QDV88/YNT2RoW9tj29cCk+ApOeKh+qwKd35weJXhZMZvBbuYFDqztgT0/MO4fB2iIA un3DznM/3z0sFtpiJRan5qTPnXZFeEChxcMB0p5a0DOiR5Ih7AgQQ2OiB7z6IlvLYjY0eaxJMOMMZ gXqB2oOuzHRmdLDFDm30XWCL9msYS9hYA0gVnVVDEUNi92oSDsYHWky3sp2UrzFhdlJDmZRJuukbt 4neu2V5cnI9mev3yUlhj51Df/dg9Sd07UmeaaKoENCNqfHC0DY2qYdnST+8ePxOCdjYj8Wa1MAulw 45Zg9VHA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fF7WD-00059O-Ip; Sun, 06 May 2018 00:27:13 +0000 Subject: Re: [PATCH v2 4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization To: "Du, Changbin" , Steven Rostedt Cc: Andrew Morton , yamada.masahiro@socionext.com, michal.lkml@markovi.net, tglx@linutronix.de, mingo@redhat.com, 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> <20180502101707.206984e9@gandalf.local.home> <20180502134558.1f388e097dcde6f589635404@linux-foundation.org> <20180502211956.6c9e8d7b@vmware.local.home> <20180503134546.5p3z4g5na7ew4fun@intel.com> <20180503102823.5b54cd56@gandalf.local.home> <20180505235725.hglh6u77spw55qa5@intel.com> From: Randy Dunlap Message-ID: <9dc6279b-767a-a4b1-75a9-aefdef61a224@infradead.org> Date: Sat, 5 May 2018 17:27:06 -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: <20180505235725.hglh6u77spw55qa5@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/05/2018 04:57 PM, Du, Changbin wrote: > On Thu, May 03, 2018 at 10:28:23AM -0400, Steven Rostedt wrote: >> On Thu, 3 May 2018 21:45:46 +0800 >> "Du, Changbin" wrote: >> >>>> With that gcc comment, I still think CONFIG_OPTIMIZE_DEBUG is more >>>> inline with what it is and understandable than >>>> CONFIG_DEBUG_EXPERIENCE. The "OPTIMIZE" is the key word there. >>>> >>>> -- Steve >>> What about CONFIG_CC_OPTIMIZE_FOR_DEBUGGING? We alreay have >>> CONFIG_CC_OPTIMIZE_FOR_SIZE and CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE. >> >> Yes I like that much better. >> >>> >>> And do we need to move it to existing configuration menu "General setup-> >>> Compiler optimization level"? But I also want it appear in "kernel hacking" >>> since this is a debug option. >> >> I understand why you would want it by debugging, but I think it does >> make more sense to be included with the above two other options, as >> they are all mutually exclusive. mm, sounds good. >> This brings up the topic of creating config paradigms. That is, a way >> of saying "I want a debug kernel" and select one option that selects >> everything you would expect. Or perhaps we should have a: >> >> make debug_config Sometimes I want to build allmodconfig-minus-debug options ... but not all debug options. I still want debugfs but most options that end with _DEBUG are disabled. I.e., I don't want the options that cause big run-time slowdowns. (unless I cause that by printing some debugfs contents) Can merge_config.sh (or one of its cousins) help with that? > Agree, I accomplish this by running script scripts/kconfig/merge_config.sh. > >> that does it. >> >> But that's a different topic. For now, I would just included it in >> init/Kconfig, and not worry about it not showing up in kernel hacking. Ack. thanks. -- ~Randy