Received: by 10.192.165.148 with SMTP id m20csp1612334imm; Sat, 5 May 2018 17:08:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp9MdGF7ffDLpVJoMsijBBBhooSZfnRyW37Wn8Nmi6pY/3xnEog51++oEf/VNodR4gEiFSP X-Received: by 2002:a63:ba05:: with SMTP id k5-v6mr26111857pgf.39.1525565308103; Sat, 05 May 2018 17:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525565308; cv=none; d=google.com; s=arc-20160816; b=qEqi93wDlww7w1i+fMu7wKPcOb2gkM5Sm3WAiOt9Wx3KuOqPmNw4BmH5/Yft2cM2Gp W/KwXX9wBv/6toKYgc1UpITcpouoXgkmvLjlOIgJvkFTo3gZ4KZsePnDpU29X13Y9SfE AYyqeFUgjkx+mc2ui95YBpEUPltNaS6KgjqpPtZOySGXxpRwAS7aRQMU7dwu1ZXPsxsR ShFfECyiSIbbBG35GHAcbEThV8CEJHoMh1tnFJLH4X5lYC3EXwPtM7gQLiLbvKpF0XkH 7s2WSwvUrUBzhNb18Sm6H68WRjFO43EEbBMWJWbpYQMXtWnRhSNh1V2btXSZoAvPihTg f/dQ== 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=6lQrUSgmeulcgiPzp59Zf25PO5gWFArJOJiemybUqIo=; b=e/j23AHlI8b3zqyKCxRLhvB3zuadk0gY5aOEltbLpsRl3O2f8FXkvuC6NQUSo1S4un qkJlD3U/UzsO93Tbky6/csd0CtiqSwe7WDanIvPrbHyPGPc9tBZm5D6FI3GPC7IkmpSB j/y4tVWfajR/ab3TuUZ0XgUxk+/ggLff+pTDlAfLbWu1R/RYmTZhBcnwoYxMdzo7xw23 R9bAoEo6MWg+0g8Y+KO9ezxQB/lXDWBfkbvuZrI+x4TDKlKasp+D0UVJv6koz89bVCya W1MzwOassEsuJH5BD3j6lHpGYFFiA3c37y89ISPgBcoIXyGNtvSWJl+yBvau09i3+UIZ A8Cw== 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 r25-v6si15865606pgu.219.2018.05.05.17.07.43; Sat, 05 May 2018 17:08:28 -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 S1751881AbeEFAHf (ORCPT + 99 others); Sat, 5 May 2018 20:07:35 -0400 Received: from mga01.intel.com ([192.55.52.88]:20708 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbeEFAHd (ORCPT ); Sat, 5 May 2018 20:07:33 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 May 2018 17:07:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,367,1520924400"; d="scan'208";a="43452204" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by fmsmga002.fm.intel.com with SMTP; 05 May 2018 17:07:30 -0700 Date: Sun, 6 May 2018 07:57:26 +0800 From: "Du, Changbin" To: Steven Rostedt Cc: "Du, Changbin" , 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: <20180505235725.hglh6u77spw55qa5@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> <20180503102823.5b54cd56@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180503102823.5b54cd56@gandalf.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 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. > > 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 > 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. > > > -- Steve -- Thanks, Changbin Du