[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8dcdba05-4d8c-83ff-f337-b6e71546e1a0@loongson.cn>
Date: Fri, 12 Sep 2025 10:26:05 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Miroslav Benes <mbenes@...e.cz>
Cc: Josh Poimboeuf <jpoimboe@...nel.org>, Huacai Chen
<chenhuacai@...nel.org>, Xi Zhang <zhangxi@...inos.cn>,
live-patching@...r.kernel.org, loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 1/2] livepatch: Add config LIVEPATCH_DEBUG to get debug
information
On 2025/9/11 下午9:50, Miroslav Benes wrote:
> Hi,
>
> On Tue, 9 Sep 2025, Tiezhu Yang wrote:
>
>> Add config LIVEPATCH_DEBUG and define DEBUG if CONFIG_LIVEPATCH_DEBUG
>> is set, then pr_debug() can print a debug level message, it is a easy
>> way to get debug information without dynamic debugging.
>
> I do not have a strong opinion but is it really worth it? Configuring
This is an alternative way, there are some similar usages:
drivers/iommu/exynos-iommu.c:
#ifdef CONFIG_EXYNOS_IOMMU_DEBUG
#define DEBUG
#endif
drivers/mtd/nand/raw/s3c2410.c:
#ifdef CONFIG_MTD_NAND_S3C2410_DEBUG
#define DEBUG
#endif
drivers/usb/storage/usb.c:
#ifdef CONFIG_USB_STORAGE_DEBUG
#define DEBUG
#endif
> dynamic debug is not difficult, it is more targetted (you can enable it
> just for a subset of functions in livepatch subsystem) and it can also be
> done on the command line.
Yes, this is true. It is up to the maintainers to apply this patch
or not.
Thanks,
Tiezhu
Powered by blists - more mailing lists