diff options
author | mpi <mpi@openbsd.org> | 2016-09-04 09:22:28 +0000 |
---|---|---|
committer | mpi <mpi@openbsd.org> | 2016-09-04 09:22:28 +0000 |
commit | 6950c8e205c43756d30d56ca678aa8205e9896fa (patch) | |
tree | 520bceb313719cacbfa77f438a8dc2fe9bf4a4f0 /sys/conf/GENERIC | |
parent | sync (diff) | |
download | wireguard-openbsd-6950c8e205c43756d30d56ca678aa8205e9896fa.tar.xz wireguard-openbsd-6950c8e205c43756d30d56ca678aa8205e9896fa.zip |
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/GENERIC | 3 |
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 |