Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3160895ybb; Mon, 13 Apr 2020 01:57:29 -0700 (PDT) X-Google-Smtp-Source: APiQypK/EkOFEnffw8xQm/84aA7eSFfuwZhEhTuW0q77VGXHkIsdohQl+hIwf/SyrkizpzcfOG0n X-Received: by 2002:a17:906:9a2:: with SMTP id q2mr15501279eje.244.1586768249170; Mon, 13 Apr 2020 01:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586768249; cv=none; d=google.com; s=arc-20160816; b=fU1U7+g4b46ghdY8xL1iWktOG+wB7ROYNJ4YNcWZZuBCpYFVKd5Vs6x42rdlUas00g Kj45M+pLfoFbMdvSFklltDyAwH6piiTifRKUCGFYaHxdWErsuWXCpTzxIOYmKZdOvN0D dQgooD2xp+pH6fLGn8CsKv5drhIu1pjEiaL+fPfrEejcLkn+6cmq4/qbdqLPr9yxsLet 5bwY9Es1Mw5qx9SMfl67+54i/nw44CQudJ1fIins4pPXerY9UKkeG6ZcDUDFUbVn7CSV SqTIMcvPqzaLyVQCgpuEXlIQX5rlN4G/Ae2QpVUvVjJZdCjNJdsbtQaGYbVXTjPyRRhA SVrw== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=r/mPo6D3puWMaFkzogYl4nqrkT1YpccdPa2j2f04i5c=; b=ND22nhxE+jrwrw6ekKyKv6bSm30C2AVXDSmeUVH+K7D96H1PyNj9dpERwxv7pjnWRU EkFS/TuYiCaTtpmg+Euz/30LE0NbDff2EOa1v4L5fGlTOZi39Kba+nB+72NC+mk//hAU d4z/5jLTYwdd6ijgMM7ntnBgY6Cchm73cFqfsBtxrkTO7+YRIeoJWNxi/ZxUu5NEKBQT tgt5PDYocKFUs0LjQrpI+BnBfcP7zvUcFAVwRg0BcadbGRJ0NhilA88E5I0oYvrSKSGD jebHx03lWOzh6SqXJ8Eu7PeFNW03gp6cNhexfKtQ4w4VHTFp6Q3MVYj3h5RM2oNmN1m+ 03mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B5zxFMWa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id c14si5876374edy.475.2020.04.13.01.57.04; Mon, 13 Apr 2020 01:57:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B5zxFMWa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728802AbgDMFCu (ORCPT + 99 others); Mon, 13 Apr 2020 01:02:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728783AbgDMFCu (ORCPT ); Mon, 13 Apr 2020 01:02:50 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 176FAC0A3BE0; Sun, 12 Apr 2020 22:02:49 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id n10so4042409pff.3; Sun, 12 Apr 2020 22:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=r/mPo6D3puWMaFkzogYl4nqrkT1YpccdPa2j2f04i5c=; b=B5zxFMWaSGyFuBKFLrN901UcpVJkvRfyEAmL0p3xp9LQVgbQx9RqlMywCtalwK8eK6 3ZbAUBbkI6caGcr7o5XYXisgbg/Hj/xc2QbPtWQPACWIcsvc/sT/AQm4UV/z9D8g0OVZ LWuRjyI/tsHiwTY0FFCyRMHJwRJNxUFR/Hj5Rn3P38b1+3x/jI0cLXIzFzgHbwrrF+oV s7MXdc9tSloxLOv6I6kt37javvd0+UtTfV7A9fQb4+w8/iM3Akm8pTBvhqx4xZ3Fxhx/ HvdE5eEztN7SKqrdq91Dc7YTRmEH8ZJPjSqq1cAbqgUaBip737xrvn/WgEPM9wy5N0Ao Eu7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=r/mPo6D3puWMaFkzogYl4nqrkT1YpccdPa2j2f04i5c=; b=tuef6Ok0AHzHVChlKWD0v6TqZLK60/V1IN2++RhEZJ1mI68irM61MYlQrIEg1yKTOl 1IWOQSosNTfOkubngm3OA/nWh26N05a9XTRuWsA6GdT7JBm84hHoPFrmJ1tj6sgop9cB 2ygjUECIWNaCpuEWoQMK6iYjNvglrJoRwnoapFeSwv13q1/BCz625wdj4sWNtYKdGHzO cPGmZ7bCOA1gFqOaMqqRkDYEvre39byr+jYnzIBdpev1pYBv0s8AipkITB/YWQEfRf1Y y5H9MDN2/JR7HMsOKSD+Ja4OLDZ2wa+h+9W0+Pxb6I8MZwqx7X0vafAJ17eLVoyWKUJp Hgow== X-Gm-Message-State: AGi0PubXBy83bXlCTc6T3yoi0wkEgePuxF4xZE+syXzTOWoCKkt4Xcdw cR6nkwOu7dtmzMK3uf0/LVo= X-Received: by 2002:a62:7c8b:: with SMTP id x133mr15869118pfc.229.1586754168622; Sun, 12 Apr 2020 22:02:48 -0700 (PDT) Received: from lenovo ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id x3sm7147299pfq.95.2020.04.12.22.02.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Apr 2020 22:02:47 -0700 (PDT) Date: Mon, 13 Apr 2020 13:02:42 +0800 From: Orson Zhai To: Greg Kroah-Hartman Cc: Jonathan Corbet , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Jason Baron , Andrew Morton , Randy Dunlap , orsonzhai@gmail.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@android.com, Orson Zhai Subject: Re: [PATCH] dynamic_debug: Add an option to enable dynamic debug for modules only Message-ID: <20200413050241.GA5694@lenovo> Mail-Followup-To: Greg Kroah-Hartman , Jonathan Corbet , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Jason Baron , Andrew Morton , Randy Dunlap , orsonzhai@gmail.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@android.com, Orson Zhai References: <1586521984-5890-1-git-send-email-orson.unisoc@gmail.com> <20200410124414.GB2091460@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200410124414.GB2091460@kroah.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2020 at 02:44:14PM +0200, Greg Kroah-Hartman wrote: > On Fri, Apr 10, 2020 at 08:33:04PM +0800, Orson Zhai wrote: > > From: Orson Zhai > > > > Instead of enabling dynamic debug globally with CONFIG_DYNAMIC_DEBUG, > > CONFIG_DYNAMIC_DEBUG_CORE will only enable core function of dynamic > > debug. With the DEBUG_MODULE defined for any modules, dynamic debug > > will be tied to them. > > > > This is useful for people who only want to enable dynamic debug for > > kernel modules without worrying about kernel image size and memory > > consumption is increasing too much. > > > > Signed-off-by: Orson Zhai > > --- > > Documentation/admin-guide/dynamic-debug-howto.rst | 7 +++++-- > > include/linux/dev_printk.h | 6 ++++-- > > include/linux/dynamic_debug.h | 2 +- > > include/linux/printk.h | 14 +++++++++----- > > lib/Kconfig.debug | 12 ++++++++++++ > > lib/Makefile | 2 +- > > lib/dynamic_debug.c | 9 +++++++-- > > 7 files changed, 39 insertions(+), 13 deletions(-) > > Crazy idea, I like it :) Jason was highly appreciated for his suggestion to my RFC patch before this. > > Acked-by: Greg Kroah-Hartman Thank you very much. Best, Orson