Received: by 10.192.165.148 with SMTP id m20csp1066917imm; Wed, 2 May 2018 13:31:23 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqMgKLu+sS9mJJ6MaRvPn1X3xzw20x5msRZj2zsICp/zt57qgZCedItLUuP/7iqI0x9gsnD X-Received: by 10.98.61.84 with SMTP id k81mr20669529pfa.193.1525293083146; Wed, 02 May 2018 13:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525293083; cv=none; d=google.com; s=arc-20160816; b=zXGmgAX9TNpgna/58Vp+mtrcGDJTBY0wQk0PKw6H2hzR5rw4uL5k4pFlhKLHGTaYfQ Fw3UEFMrMoO6uagcdprLoUkL+WxTks0MzHfBYQ/g2+N9BM9p40y46MpVcHDZHGOclzWI uiBsqeNdjqGlolLY6UjXVKRaYhxxOuHVg5JWJlkavdfLutcPjZ0PQiSnC6GHAfZ2Ehgm mSpbbVNzr6MLlrWQKTbfPwyhDcqbxHVMtPio2dS1ZAXtouv9WYxCJV9AoAU77eGl600z IH9sVZf/NN9haLNMUrQ+n/IRxX7RRGHKD53krb2MceDpmPoEwl3HWzutcyj6ilgb0wJL iG0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=x+BU+cOvKfm9uxtAkm6v9XGe5qp9dJqUDiuyx64lv3Y=; b=inVuIQaZ0Gh96GwaHfpV2tGb7X4CobfOPMzooBuOGJ8ZDXjwl3a8jkKv6dJTQHKtcB qyw8K2tIXqTMFwm9v9DABLshExty/3mZDknlGH8VQEtvYL55oEb2uBsPZ6q+/zEv+aiJ QTYt1f0qUH9EJYFZJM7K3+cgvd03DKXDWt8cXKghYe0FuqrtGkgIOkwINat0aLD/BaCq 2ercgWYBTp3maMzrWGSV8UY590zmmmOYKFNou+zWu47ap9FRaWESPSbdgAHkuzu4z4RC +orEm63cF9oojnrrWMeWq3T5fKQdUnngRtuKSAAGTaN9312od2jRnAQ7eJGURzF+f9gs jriA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HDH2tmo5; 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 m12-v6si10061177pgd.240.2018.05.02.13.31.06; Wed, 02 May 2018 13:31:23 -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=@gmail.com header.s=20161025 header.b=HDH2tmo5; 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 S1751432AbeEBUa1 (ORCPT + 99 others); Wed, 2 May 2018 16:30:27 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:41775 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbeEBUaW (ORCPT ); Wed, 2 May 2018 16:30:22 -0400 Received: by mail-qt0-f195.google.com with SMTP id g13-v6so20160714qth.8; Wed, 02 May 2018 13:30:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=x+BU+cOvKfm9uxtAkm6v9XGe5qp9dJqUDiuyx64lv3Y=; b=HDH2tmo5r7RFLrrFm6xN4UavrYusTC/+dC9WyEUI5aazgOQDR0+BgC9M5P+SkGw6o5 Bb40xZPoG0YchpBu4TCrRxpnrO+sBgGmKqZGxS3jH8xzz7Q4RG2IETRiylDAfLeFpnqn ZsibE5DyN1ZlxnB3tkoEAtzsAL7r6oIRdv99V8IW2lCb28yW56aHs09+3RExaOhk+Nax oyyzgp8FHlKZ+wEMt3u6a8kftJ9sqLaS3kp+u1AowfuY3KyraDZfwLUSKvQux1CGfHtb 8xmqoRhs+BO3SjhtsfHtdqZH/v/izzJKDqKnVxQ2yYuUYcqeIsDIVIHPkqNCr2Y0bdjW LeEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=x+BU+cOvKfm9uxtAkm6v9XGe5qp9dJqUDiuyx64lv3Y=; b=B54tUbLwTcrcmF5hWtZ9vMq5sh5De5uBeeR9f3Q2m18YAIQF+/xtqfN5H6ki5pQhm/ vWwGL67uvMbDj5rOEvvYd1y2R89VDerwyaZ4C1b75EhXyZmWgBXohUdZtxsD+4uhuWC9 eL+M1xTQrpw7ojvD/NHBKgrZ/mzRAzGoUghrLYEGY7dgO/cx9snNK3Dn4iNYY8y4Vxdf yAZBLjM2ZAh121/Q9L+QpSqkDlv5uO/ORM1VpzKZmjmFCy8nnU5TxWhuPPoaoEvevRW0 RBQeE8SBo+ovtkPmv8/pNwZyzLgPCD3cxLEvm+rrX77yVAZKxEHrqLeiWMlEzWLu2ZYu dTkQ== X-Gm-Message-State: ALQs6tAP0Fc6HQaptw6mupQZQrgRndrpa8wQ1CKxlrkc/Qqe3W1+YZWG bhlDKhCjC/kbEhimNe+wvUxYgb0KvysugFANGu8= X-Received: by 2002:ac8:1c12:: with SMTP id a18-v6mr17823945qtk.280.1525293021762; Wed, 02 May 2018 13:30:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.3 with HTTP; Wed, 2 May 2018 13:30:21 -0700 (PDT) In-Reply-To: <1525179614-14571-5-git-send-email-changbin.du@intel.com> References: <1525179614-14571-1-git-send-email-changbin.du@intel.com> <1525179614-14571-5-git-send-email-changbin.du@intel.com> From: Arnd Bergmann Date: Wed, 2 May 2018 16:30:21 -0400 X-Google-Sender-Auth: wLUmBW10zixqRt189pu0PAt3QLY Message-ID: Subject: Re: [PATCH 4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization To: changbin.du@intel.com Cc: Masahiro Yamada , Michal Marek , Thomas Gleixner , Ingo Molnar , Andrew Morton , "the arch/x86 maintainers" , Liam Girdwood , Mark Brown , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arch Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 1, 2018 at 9:00 AM, wrote: > From: Changbin Du > +config DEBUG_EXPERIENCE > + bool "Optimize for better debugging experience (-Og)" > + default n > + select NO_AUTO_INLINE > + depends on !CC_OPTIMIZE_FOR_SIZE > + help How about having this as another option alongside CC_OPTIMIZE_FOR_SIZE and CC_OPTIMIZE_FOR_PERFORMANCE in the same choice statement? We could also add another option for -Os (for faster compiles) or possibly for -O3 (if anyone cares) in there. Arnd