Received: by 10.192.165.148 with SMTP id m20csp1879518imm; Thu, 3 May 2018 06:56:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8g1rFFo0e6ySh9YzkjBhNWvELbWCNAf9wOp+DMvcqFYX4F0r7tajCxUtJao5xfAHyVz7+ X-Received: by 10.98.139.7 with SMTP id j7mr23141546pfe.28.1525355818429; Thu, 03 May 2018 06:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525355818; cv=none; d=google.com; s=arc-20160816; b=Tl2nS6mP6xU2FhhhYsb8SHVq8p6t/aMEKmcD5wXNle2TnqNxB81GUQDoJ3PUwDIBz9 1W7/TXIwxcAchcHCvljgOnRwESZO40hLdTK2PbU5EpCPHd1cirXVTHfHhgNYL59cwMxH 0WR8oLcHs0qi9i5IuTNzDgDu2wSlknV90gvW+X8YS5+mJrwMfbZJVVk/r7X0t47dAjTQ n03crUE09FIWm+7pcsVR2Tw204NIlLCH+cWCytXKZUwxPuvbWRr8pwgt7Ze5xOzQ290m hwmfCgwNR/gF/qwEfepPRSk20pkBZptuGyexFutmNhJIOiWMi+8nEpBVjxBvqQ2iVIXS zpiQ== 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=KCbC4EMhXc3HZZz6cVNSHv9KE96ldlXiS+4u25mxzpg=; b=cmYioJZuUUs3ES9HdYPwOOoPC5o9V+5llJQfmhfkqX7P+bEpinmNxOu0urq9BRclZA YTbpq3Ev4dB8xLIaBRJcNITRps3M9EmoQrvPKmmssampfjsHZnZ/Z9V2HrZKzSeHYL1l uOfUVT03B6jFLzLvSKvuRDVmQXZuOoLYuf09bu3sxXD18wMOMP+gYIRNpbQLroD8cZoI BlH9bZ7cbq25TjdXi6KhPjYjXG2g/ayWd3RSuywTL6zXK/Hm+Fi32Mc1CZ0S4fawNJ86 zVFD9pI8K/eG6xxqH2Tzr6iI0UDPbQwz/ry6CzLBM8Vu6IbPWeji+YKvT/LtsWWwIFXq UnfQ== 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 39-v6si13876291plc.515.2018.05.03.06.56.13; Thu, 03 May 2018 06:56:58 -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 S1751302AbeECNz4 (ORCPT + 99 others); Thu, 3 May 2018 09:55:56 -0400 Received: from mga14.intel.com ([192.55.52.115]:46074 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064AbeECNzw (ORCPT ); Thu, 3 May 2018 09:55:52 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 06:55:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,358,1520924400"; d="scan'208";a="37173731" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by fmsmga008.fm.intel.com with SMTP; 03 May 2018 06:55:48 -0700 Date: Thu, 3 May 2018 21:45:46 +0800 From: "Du, Changbin" To: Steven Rostedt Cc: Andrew Morton , changbin.du@intel.com, 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: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180502211956.6c9e8d7b@vmware.local.home> User-Agent: NeoMutt/20180323-6-5ca392 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 02, 2018 at 09:19:56PM -0400, Steven Rostedt wrote: > On Wed, 2 May 2018 13:45:58 -0700 > Andrew Morton wrote: > > > On Wed, 2 May 2018 10:17:07 -0400 Steven Rostedt wrote: > > > > > > Comparison of vmlinux size: a bit smaller. > > > > > > > > w/o CONFIG_DEBUG_EXPERIENCE > > > > > > I hate the config name. > > > > > > I probably can't come up with better ones but let's try: > > > > > > CONFIG_DEBUG_OPTIMIZE ? > > > CONFIG_OPTIMIZE_DEBUG ? > > > > > > But "EXPERIENCE" sounds like I'm on some DEBUG LSD. > > > > Metoo, but the gcc people decided on "-Og: Optimize debugging > > experience ..." and I think there are benefits if the kernel is to > > align the naming with that. > > I still see that as "Optimize debugging" and "experience" is just the > platform of what was done. > > 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. 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. -- Thanks, Changbin Du