git: 8ba76c6565f3 - stable/15 - Add -DEBUG kernel configurations
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 22:05:26 UTC
The branch stable/15 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=8ba76c6565f3d57160009d5ac8972fed9b00e59e
commit 8ba76c6565f3d57160009d5ac8972fed9b00e59e
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-09-05 22:05:03 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-09-05 22:05:03 +0000
Add -DEBUG kernel configurations
Also include these in GENERIC-K*SAN kernels (which previously depended on
GENERIC configurations which debug-enabled until the branch point).
Approved by: re (implicit)
Sponsored by: https://www.patreon.com/cperciva
---
sys/amd64/conf/GENERIC-DEBUG | 9 +++++++++
sys/amd64/conf/GENERIC-KASAN | 2 +-
sys/amd64/conf/GENERIC-KCSAN | 2 +-
sys/amd64/conf/GENERIC-KMSAN | 2 +-
sys/amd64/conf/MINIMAL-DEBUG | 9 +++++++++
sys/arm/conf/GENERIC-DEBUG | 9 +++++++++
sys/arm64/conf/GENERIC-DEBUG | 9 +++++++++
sys/arm64/conf/GENERIC-KASAN | 2 +-
sys/arm64/conf/GENERIC-KMSAN | 2 +-
sys/i386/conf/GENERIC-DEBUG | 9 +++++++++
sys/powerpc/conf/GENERIC-DEBUG | 9 +++++++++
sys/powerpc/conf/GENERIC64-DEBUG | 9 +++++++++
sys/powerpc/conf/GENERIC64LE-DEBUG | 9 +++++++++
sys/riscv/conf/GENERIC-DEBUG | 9 +++++++++
14 files changed, 86 insertions(+), 5 deletions(-)
diff --git a/sys/amd64/conf/GENERIC-DEBUG b/sys/amd64/conf/GENERIC-DEBUG
new file mode 100644
index 000000000000..f7187677370b
--- /dev/null
+++ b/sys/amd64/conf/GENERIC-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/amd64
+#
+
+include GENERIC
+include "std.debug"
+
+ident GENERIC-DEBUG
diff --git a/sys/amd64/conf/GENERIC-KASAN b/sys/amd64/conf/GENERIC-KASAN
index 5aa2d50d3cca..855f2e29f119 100644
--- a/sys/amd64/conf/GENERIC-KASAN
+++ b/sys/amd64/conf/GENERIC-KASAN
@@ -1,5 +1,5 @@
-include GENERIC
+include GENERIC-DEBUG
ident GENERIC-KASAN
diff --git a/sys/amd64/conf/GENERIC-KCSAN b/sys/amd64/conf/GENERIC-KCSAN
index a0970f2a46a4..135f705c0c93 100644
--- a/sys/amd64/conf/GENERIC-KCSAN
+++ b/sys/amd64/conf/GENERIC-KCSAN
@@ -25,7 +25,7 @@
# in NOTES.
#
-include GENERIC
+include GENERIC-DEBUG
ident GENERIC-KCSAN
diff --git a/sys/amd64/conf/GENERIC-KMSAN b/sys/amd64/conf/GENERIC-KMSAN
index e147d8b8168b..c84241e9d50b 100644
--- a/sys/amd64/conf/GENERIC-KMSAN
+++ b/sys/amd64/conf/GENERIC-KMSAN
@@ -1,5 +1,5 @@
-include GENERIC
+include GENERIC-DEBUG
ident GENERIC-KMSAN
diff --git a/sys/amd64/conf/MINIMAL-DEBUG b/sys/amd64/conf/MINIMAL-DEBUG
new file mode 100644
index 000000000000..a2533608f8af
--- /dev/null
+++ b/sys/amd64/conf/MINIMAL-DEBUG
@@ -0,0 +1,9 @@
+#
+# MINIMAL-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/amd64
+#
+
+include MINIMAL
+include "std.debug"
+
+ident MINIMAL-DEBUG
diff --git a/sys/arm/conf/GENERIC-DEBUG b/sys/arm/conf/GENERIC-DEBUG
new file mode 100644
index 000000000000..f36fe21b1640
--- /dev/null
+++ b/sys/arm/conf/GENERIC-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/ARMv6
+#
+
+include GENERIC
+include "std.debug"
+
+ident GENERIC-DEBUG
diff --git a/sys/arm64/conf/GENERIC-DEBUG b/sys/arm64/conf/GENERIC-DEBUG
new file mode 100644
index 000000000000..d954106b58db
--- /dev/null
+++ b/sys/arm64/conf/GENERIC-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/arm64
+#
+
+include GENERIC
+include "std.debug"
+
+ident GENERIC-DEBUG
diff --git a/sys/arm64/conf/GENERIC-KASAN b/sys/arm64/conf/GENERIC-KASAN
index 232e8cb27fcd..baaf62098e95 100644
--- a/sys/arm64/conf/GENERIC-KASAN
+++ b/sys/arm64/conf/GENERIC-KASAN
@@ -1,4 +1,4 @@
-include GENERIC
+include GENERIC-DEBUG
ident GENERIC-KASAN
diff --git a/sys/arm64/conf/GENERIC-KMSAN b/sys/arm64/conf/GENERIC-KMSAN
index a9ff46159f14..5304e3588a96 100644
--- a/sys/arm64/conf/GENERIC-KMSAN
+++ b/sys/arm64/conf/GENERIC-KMSAN
@@ -1,4 +1,4 @@
-include GENERIC
+include GENERIC-DEBUG
ident GENERIC-KMSAN
diff --git a/sys/i386/conf/GENERIC-DEBUG b/sys/i386/conf/GENERIC-DEBUG
new file mode 100644
index 000000000000..a988096e019e
--- /dev/null
+++ b/sys/i386/conf/GENERIC-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/i386
+#
+
+include GENERIC
+include "std.debug"
+
+ident GENERIC-DEBUG
diff --git a/sys/powerpc/conf/GENERIC-DEBUG b/sys/powerpc/conf/GENERIC-DEBUG
new file mode 100644
index 000000000000..6388aaaffb55
--- /dev/null
+++ b/sys/powerpc/conf/GENERIC-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/powerpc
+#
+
+include GENERIC
+include "std.debug"
+
+ident GENERIC-DEBUG
diff --git a/sys/powerpc/conf/GENERIC64-DEBUG b/sys/powerpc/conf/GENERIC64-DEBUG
new file mode 100644
index 000000000000..5e0d43941200
--- /dev/null
+++ b/sys/powerpc/conf/GENERIC64-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/powerpc64
+#
+
+include GENERIC64
+include "std.debug"
+
+ident GENERIC64-DEBUG
diff --git a/sys/powerpc/conf/GENERIC64LE-DEBUG b/sys/powerpc/conf/GENERIC64LE-DEBUG
new file mode 100644
index 000000000000..97d308864313
--- /dev/null
+++ b/sys/powerpc/conf/GENERIC64LE-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/powerpc64le
+#
+
+include GENERIC64LE
+include "std.debug"
+
+ident GENERIC64LE-DEBUG
diff --git a/sys/riscv/conf/GENERIC-DEBUG b/sys/riscv/conf/GENERIC-DEBUG
new file mode 100644
index 000000000000..ab16a6cc5cfa
--- /dev/null
+++ b/sys/riscv/conf/GENERIC-DEBUG
@@ -0,0 +1,9 @@
+#
+# GENERIC-DEBUG -- WITNESS and INVARIANTS enabled kernel configuration file
+# for FreeBSD/RISC-V
+#
+
+include GENERIC
+include "std.debug"
+
+ident GENERIC-DEBUG