summaryrefslogtreecommitdiff
path: root/sys/conf/GENERIC
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-09-04 09:22:30 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-09-04 09:22:30 +0000
commit297c8e80316ba985b62c1e3edc37c93edd7ccc1e (patch)
treee4888020f2a0630620700dd66d94e92ce6fc6183 /sys/conf/GENERIC
parentfcb140ee2b167e179b83bdc3675b92638186e604 (diff)
Introduce Dynamic Profiling, a ddb(4) based & gprof compatible kernel
profiling framework. Code patching is used to enable probes when entering functions. The probes will call a mcount()-like function to match the behavior of a GPROF kernel. Currently only available on amd64 and guarded under DDBPROF. Support for other archs will follow soon. A new sysctl knob, ddb.console, need to be set to 1 in securelevel 0 to be able to use this feature. Inputs and ok guenther@
Diffstat (limited to 'sys/conf/GENERIC')
-rw-r--r--sys/conf/GENERIC3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/conf/GENERIC b/sys/conf/GENERIC
index 483fd9a5733..9e7e2b750a3 100644
--- a/sys/conf/GENERIC
+++ b/sys/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.232 2016/09/03 14:20:25 phessler Exp $
+# $OpenBSD: GENERIC,v 1.233 2016/09/04 09:22:28 mpi Exp $
#
# Machine-independent option; used by all architectures for their
# GENERIC kernel
@@ -6,6 +6,7 @@
#option INSECURE # default to secure
option DDB # in-kernel debugger
+#option DDBPROF # ddb(4) based profiling
#option DDB_SAFE_CONSOLE # allow break into ddb during boot
#makeoptions DEBUG="-g" # compile full symbol table
#makeoptions PROF="-pg" # build profiled kernel