[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200410124414.GB2091460@kroah.com>
Date: Fri, 10 Apr 2020 14:44:14 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Orson Zhai <orson.unisoc@...il.com>
Cc: Jonathan Corbet <corbet@....net>, Petr Mladek <pmladek@...e.com>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Steven Rostedt <rostedt@...dmis.org>,
Jason Baron <jbaron@...mai.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Randy Dunlap <rdunlap@...radead.org>, orsonzhai@...il.com,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
kernel-team@...roid.com, Orson Zhai <orson.zhai@...soc.com>
Subject: Re: [PATCH] dynamic_debug: Add an option to enable dynamic debug for
modules only
On Fri, Apr 10, 2020 at 08:33:04PM +0800, Orson Zhai wrote:
> From: Orson Zhai <orson.zhai@...soc.com>
>
> 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 <orson.zhai@...soc.com>
> ---
> 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 :)
Acked-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Powered by blists - more mailing lists