aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-Fay.ORG>2024-04-23 21:11:24 +0000
committerWarner Losh <imp@FreeBSD.org>2024-04-23 21:13:31 +0000
commit4f8f9d708e6a4143f3b178bfab10d0a9b75ba2fe (patch)
tree3eee6163fe9e42b6fc3f6f8822e673f688bd0477 /sys/arm
parent93c5ba5a83d6e23329e9ca9b9ed72eea613b611d (diff)
downloadsrc-4f8f9d708e6a4143f3b178bfab10d0a9b75ba2fe.tar.gz
src-4f8f9d708e6a4143f3b178bfab10d0a9b75ba2fe.zip
sys: add conf/std.debug, generic debugging options
The new sys/conf/std.debug contains the list of debugging options enabled by default in -CURRENT, so they don't need to be listed individually in every kernel config. The enabled options are the set of all debug options which were enabled for the GENERIC kernel on any platform. This means some architectures now have debugging options enabled in GENERIC which weren't previously enabled: - amd64: [1] - arm64: [2] - arm: [2]. [3] - i386: [1], [2] - powerpc: [1], [2], [3] - riscv: [2] [1] ALT_BREAK_TO_DEBUGGER is now enabled. [2] BUF_TRACKING, FULL_BUF_TRACKING, and QUEUE_MACRO_DEBUG_TRASH are now enabled. [3] DEADLKRES is now enabled. While here, move the documentation for the (commented out) K*SAN options for amd64 from GENERIC to NOTES. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1124
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/conf/std.armv614
-rw-r--r--sys/arm/conf/std.armv714
2 files changed, 6 insertions, 22 deletions
diff --git a/sys/arm/conf/std.armv6 b/sys/arm/conf/std.armv6
index b4b83d66809a..9ae37eab90d5 100644
--- a/sys/arm/conf/std.armv6
+++ b/sys/arm/conf/std.armv6
@@ -63,18 +63,10 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options KDB # Enable kernel debugger support.
options KDB_TRACE # Print a stack trace for a panic.
+options USB_DEBUG # Enable usb debug support code
+
# For full debugger support use (turn off in stable branch):
-options DDB # Support DDB
-options GDB # Support remote GDB
-#options DEADLKRES # Enable the deadlock resolver
-options INVARIANTS # Enable calls of extra sanity checking
-options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
-options WITNESS # Enable checks to detect deadlocks and cycles
-options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
-options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones
-options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence
-options USB_DEBUG # Enable usb debug support code
-options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default
+include ../../conf/std.debug
# Optional extras, never enabled by default:
#options BOOTVERBOSE
diff --git a/sys/arm/conf/std.armv7 b/sys/arm/conf/std.armv7
index 80b4e898bfdc..72f22efd0c28 100644
--- a/sys/arm/conf/std.armv7
+++ b/sys/arm/conf/std.armv7
@@ -63,18 +63,10 @@ makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
options KDB # Enable kernel debugger support.
options KDB_TRACE # Print a stack trace for a panic.
+options USB_DEBUG # Enable usb debug support code
+
# For full debugger support use (turn off in stable branch):
-options DDB # Support DDB
-options GDB # Support remote GDB
-#options DEADLKRES # Enable the deadlock resolver
-options INVARIANTS # Enable calls of extra sanity checking
-options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS
-options WITNESS # Enable checks to detect deadlocks and cycles
-options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed
-options MALLOC_DEBUG_MAXZONES=8 # Separate malloc(9) zones
-options ALT_BREAK_TO_DEBUGGER # Enter debugger on keyboard escape sequence
-options USB_DEBUG # Enable usb debug support code
-options VERBOSE_SYSINIT=0 # Support debug.verbose_sysinit, off by default
+include ../../conf/std.debug
# Optional extras, never enabled by default:
#options BOOTVERBOSE