Received: by 10.192.165.148 with SMTP id m20csp1918756imm; Thu, 3 May 2018 07:30:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrX39GrOI5mOT11xP7ibQ0JxE+NC9HUj80Xp4Az2qGELsqn97cqszrJXhox9i2qEhPvhZ1y X-Received: by 2002:a17:902:9a8c:: with SMTP id w12-v6mr24555016plp.333.1525357815133; Thu, 03 May 2018 07:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525357815; cv=none; d=google.com; s=arc-20160816; b=K5cZl+BFmWWXpFVnUbjkGnxVdklW2wagX5lsA78Nm4jSiODqgyb9h3TDVtpBOwDRzA s+RJPxkqh427X1G3Dq3vpcRIDzwcGs2lJEBOQXknPpXaMXmBDPR2UGIbj8ogaDPmbsSa DpnPsEhLR9EO0mq9gLjyS52wLtz2WmJQ640jav25kpSArClAJSq3Ed0DieEBi2XUaVSP w5X3GXJeqHafr/2DfIcaqbhmVRXLbXjfdGOxZXt+1eB0i2Eh43aQ51s9VkbeUEvZZxYz w1z8X6CO4A85iCJDguHBemWzY4+eWlWBhPE+Z7PzMeGfqPo+OKRkvQTTq9UyrB4HXUaP s5Zw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=39g2lJpGZ+ifdNUKwnYeJHbXzYRTRzjT6RXp82QeXQg=; b=EST2kw4yvPF5uckAjj0bV4GqgOseAv4S7ftIsu8baS7kvXgktH+/cOIioIxRcUq7PK T8sklSrcqkseYLW0oSIOfJAvHxpQg25rGVvwddWH5xXmHJI+0G4BRSFINrtwWIXVPOqA EJeD6l1EMvZzm2sUQNDMiB0/HR8e1thSb5sm+83Jhtw01XwzEwCzZ/xaMyDMgjJOUIPa o4qO8tnQcW2FB5XYnI4heudkdAXDtcdH6gshmljM7KIdQnqJsHyhqh4yQ6BHy8JMkH8G zDK0RNgyWbrFdZqdHgmBz7GRHBsWdhptHMWGLZm8z7YM3td0DrCnc8shJXJBsmP4IVzh 77Hg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14-v6si11367545pgq.512.2018.05.03.07.30.00; Thu, 03 May 2018 07:30:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751359AbeECO2b (ORCPT + 99 others); Thu, 3 May 2018 10:28:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:54976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbeECO21 (ORCPT ); Thu, 3 May 2018 10:28:27 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 359EB21720; Thu, 3 May 2018 14:28:25 +0000 (UTC) Date: Thu, 3 May 2018 10:28:23 -0400 From: Steven Rostedt To: "Du, Changbin" Cc: Andrew Morton , yamada.masahiro@socionext.com, michal.lkml@markovi.net, tglx@linutronix.de, mingo@redhat.com, rdunlap@infradead.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 Subject: Re: [PATCH v2 4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization Message-ID: <20180503102823.5b54cd56@gandalf.local.home> In-Reply-To: <20180503134546.5p3z4g5na7ew4fun@intel.com> 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> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 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. -- Steve