Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1009135ybh; Wed, 18 Mar 2020 13:13:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtfivAmELn2UBRu/SkMHcj6suxrtE3UFUvG5Q6W9FwhkziScEmsyK9mqRABy0jQJ4imMYcZ X-Received: by 2002:aca:ed44:: with SMTP id l65mr4536530oih.63.1584562391852; Wed, 18 Mar 2020 13:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584562391; cv=none; d=google.com; s=arc-20160816; b=tfFlzQ4atVDhrNXdU3w/vLbG4P6MelaLgK4X3G9XQoGnnfV0c+NV3+O4vzHa6hu3gG CY9R24lb4I1/p7d426TXCPXFrpcipoOy4O1UxnyfPgfHdSXbBzZdBZWnSAXX+/0DFqgF 3RnknviC6XMrug/fLJ1drWga3gqzu+MGepLdtfDdAsE94+WThIulQ/0TmLOBR2h/is03 wY63W/xV7pByLD3F3LXauzZBYAk4gk0HfQb0/p5w6XBEfS6SzXjjbpVwN8lvzI4cXRbD CQLFLeQD1PYVLzjqjtM5/9Mp/uCHlHRYJYwqG0nOL9fWjbOpuERUG6v5vP2RZaR7qfm5 EYqw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=lm1QAgPbIMGNFjr1hUN2+SfO8MIYTxxJtFHbkC9Id28=; b=a3N5R9/i6iiWezFA+/LYsqhwAYcYzRbYgKQWwyKQtBPAL8DzywoZMNiaLVpaz/YGbl 391MrDJS+QgqFvyFayDL6Pnxk/p44Sz3uvrfNNx5U/WgSy/iD21utZ0z10lDVz3PBsHb nVXyc6K//wCWDSbLfp07rAChKGiAHGvAoQ2HpaOT5veH3ilX/mdct6g6Pf2ke76CeNuZ ktCibliEVRG4aqgCDzskgd8IDrAAG2qoyhDoSco1W02bdunSq4vYxAhhrlcQXlUOJWbe goBME8+MTHviG5JZhqscc/XezZV/SiC+3cBVs6kzcBqzqGPsovDmQ6ycFbQNFuWS/3/J YPSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YQdLgK8U; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si3736668oif.164.2020.03.18.13.12.59; Wed, 18 Mar 2020 13:13:11 -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=pass header.i=@gmail.com header.s=20161025 header.b=YQdLgK8U; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgCRUMB (ORCPT + 99 others); Wed, 18 Mar 2020 16:12:01 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35685 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgCRUMB (ORCPT ); Wed, 18 Mar 2020 16:12:01 -0400 Received: by mail-lj1-f193.google.com with SMTP id u12so28587611ljo.2 for ; Wed, 18 Mar 2020 13:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lm1QAgPbIMGNFjr1hUN2+SfO8MIYTxxJtFHbkC9Id28=; b=YQdLgK8UoBk3dQ3VtRVYHg+exZ795xukSZj1NzCefm8BMQti3HA+c2KqtPjHpkd++b RSKoiuQJdgKEzB8odoiHL0BlkphTThdOHhJZLl2QBZXqMv9CsRCY0Uts7OOuUF/+qwZH x5prkFmi0Uv+HkOfWv8BpK4hSpS42VECt5YPJAZZxSNzQHKh19QydR+fd+WziiiB3Tdo EUEDAeFsE1vurWKIYfVKhd+ax3/XSafKHfPjHBHxlYIoc7w5AJduadLhdd1WSSc3/Ygp V5/ymZmMssOKfmznvp+M8zYu+GeV7z4tl7mbYu7li06dACrQ4t5zGQhZ8Oxduno3bnBW D8lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lm1QAgPbIMGNFjr1hUN2+SfO8MIYTxxJtFHbkC9Id28=; b=dAvAq2daUVzyXCUvBECcO8dulAxyvv7f9THdYeVb+BKyGx7YxVTiElnI1oQdw+UNs2 uB/oQElxsbevZN9Xk4AeUkJqRbwcPRbMyCr6reC4XdwfGvEyP2x7V9iJmq2S3dDSyDdR fmmaetTypiF8T//Jko/pFsr4cEBUqcrHyGgNlXwCrekgXC0SC1CYrdi1heRxHkd9zpUI MJ5OlodCx5u1dkoEZk3CJ0YLuQvGwDvJLqPOHNk5GFh+RgcdGCYnIhyAWhfdCphsvmAY Xa85bZtgsKxG/bpPwFDv04a5qxskstnPZwwm3KEYceosa16jhtVf44Y1c7O5ne4IuOW7 IXAQ== X-Gm-Message-State: ANhLgQ33vgrhChjbH0NasA7fdxBBlrp/CAl8lPUyHOpjKTPKJLPLuJlu qhY5XojDcCUl93PpZfHwPqUlVCWUwSuCFfB56lM= X-Received: by 2002:a2e:9a50:: with SMTP id k16mr3482898ljj.164.1584562318513; Wed, 18 Mar 2020 13:11:58 -0700 (PDT) MIME-Version: 1.0 References: <1584558186-23373-1-git-send-email-orson.unisoc@gmail.com> In-Reply-To: From: Orson Zhai Date: Thu, 19 Mar 2020 04:11:45 +0800 Message-ID: Subject: Re: [RFC PATCH] dynamic_debug: Add config option of DYNAMIC_DEBUG_CORE To: Andy Shevchenko Cc: Orson Zhai , Jason Baron , Andrew Morton , Changbin Du , Randy Dunlap , Masahiro Yamada , Shuah Khan , Krzysztof Kozlowski , Masami Hiramatsu , Brendan Higgins , Herbert Xu , Ard Biesheuvel , Gary Hook , David Gow , Mark Rutland , Linux Kernel Mailing List , Android Kernel Team 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 Thu, Mar 19, 2020 at 3:23 AM Andy Shevchenko wrote: > > On Wed, Mar 18, 2020 at 9:04 PM Orson Zhai wrote: > > > > There is the requirement from new Android that kernel image (GKI) and > > kernel modules are supposed to be built at differnet places. Some people > > want to enable dynamic debug for kernel modules only but not for kernel > > image itself with the consideration of binary size increased or more > > memory being used. > > > > By this patch, dynamic debug is divided into core part (the defination of > > functions) and macro replacement part. We can only have the core part to > > be built-in and do not have to activate the debug output from kenrel image. > > > > There are few grammar typos in above... I am very sorry about this. I though check-patch would remind me, but it seems not. I'll check this carefully next time. > > config DYNAMIC_DEBUG > > bool "Enable dynamic printk() support" > > default n > > > - depends on PRINTK > > - depends on DEBUG_FS > > You may not touch this. By removing them you effectively removed > dependencies :-( OK. I thought dependencies it could be inherited from the selected one. But I believe you are right. It's not necessary to be removed. I will add it back at next version. > > > + select DYNAMIC_DEBUG_CORE > > help > > > > Compiles debug level messages into the kernel, which would not > > @@ -164,6 +163,21 @@ config DYNAMIC_DEBUG > > See Documentation/admin-guide/dynamic-debug-howto.rst for additional > > information. > > > > +config DYNAMIC_DEBUG_CORE > > + bool "Enable core functions of dynamic debug support" > > + depends on PRINTK > > + depends on DEBUG_FS > > + help > > + Enable this option to build ddebug_* and __dynamic_* routines > > + into kernel. If you want enable whole dynamic debug features, > > + select CONFIG_DYNAMIC_DEBUG directly and this option will be > > + automatically selected. > > + > > + This option is selected when you want to enable dynamic debug > > > + for kernel modules only but not for the kernel base. Especailly > > Typo. Will be fixed next version. > > > + in the case that kernel modules are built out of the place where > > + kernel base is built. > > Highly recommend to ask somebody to do proof read. Sorry again. Thanks for your review. Best Regards, -Orson > > -- > With Best Regards, > Andy Shevchenko