CVSROOT: /cvs Module name: src Changes by: k...@cvs.openbsd.org 2020/08/22 05:47:23
Modified files: sys/sys : sysctl.h sys/kern : kern_sysctl.c vfs_subr.c vfs_syscalls.c Log message: Move sysctl(2) CTL_DEBUG from DEBUG to new DEBUG_SYSCTL Adding "debug.my-knob" sysctls is really helpful to select different code paths and/or log on demand during runtime without recompile, but as this code is under DEBUG, lots of other noise comes with it which is often undesired, at least when looking at specific subsystems only. Adding globals to the kernel and breaking into DDB to change them helps, but that does not work over SSH, hence the need for debug sysctls. Introduces DEBUG_SYSCTL to make use of the "debug" MIB without the rest of DEBUG; it's DEBUG_SYSCTL and not SYSCTL_DEBUG because it's not a general option for all of sysctl(2). OK gnezdo