Message ID | 20220718192844.1805158-17-yury.norov@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Introduce DEBUG_BITMAP config option and bitmap_check_params() | expand |
On Mon, Jul 18, 2022 at 12:28:44PM -0700, Yury Norov wrote: > Create CONFIG_DEBUG_BITMAP parameter to let people use > new option. Default is N. Even if a separate, it should follow immediately the implementation.
On Tue, Jul 19, 2022 at 12:39:02AM +0300, Andy Shevchenko wrote: > On Mon, Jul 18, 2022 at 12:28:44PM -0700, Yury Norov wrote: > > Create CONFIG_DEBUG_BITMAP parameter to let people use > > new option. Default is N. > > Even if a separate, it should follow immediately the implementation. If it follows the 1st patch immediately, and becomes enabled, it will generate a lot of noise for those who bisect and occasionally jumps into a mid of the series. There are quite a lot of patchsets that create a feature in many patches, and explicitly enable it in the very last patch.
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2e24db4bff19..cde1b5b7bb9d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -533,6 +533,13 @@ config DEBUG_FORCE_WEAK_PER_CPU endmenu # "Compiler options" +config DEBUG_BITMAP + bool "Debug bitmaps" + help + Say Y here if you want to check bitmap functions parameters at + the runtime. Enable CONFIG_DEBUG_BITMAP only for debugging because + it may affect performance. + menu "Generic Kernel Debugging Instruments" config MAGIC_SYSRQ
Create CONFIG_DEBUG_BITMAP parameter to let people use new option. Default is N. Signed-off-by: Yury Norov <yury.norov@gmail.com> --- lib/Kconfig.debug | 7 +++++++ 1 file changed, 7 insertions(+)