Thu Mar 9 00:17:32 2017 UTC ()
mention KDTRACE_HOOKS.


(chs)
diff -r1.463 -r1.464 src/share/man/man4/options.4

cvs diff -r1.463 -r1.464 src/share/man/man4/options.4 (expand / switch to unified diff)

--- src/share/man/man4/options.4 2017/02/19 11:16:45 1.463
+++ src/share/man/man4/options.4 2017/03/09 00:17:32 1.464
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: options.4,v 1.463 2017/02/19 11:16:45 wiz Exp $ 1.\" $NetBSD: options.4,v 1.464 2017/03/09 00:17:32 chs Exp $
2.\" 2.\"
3.\" Copyright (c) 1996 3.\" Copyright (c) 1996
4.\" Perry E. Metzger. All rights reserved. 4.\" Perry E. Metzger. All rights reserved.
5.\" 5.\"
6.\" Redistribution and use in source and binary forms, with or without 6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions 7.\" modification, are permitted provided that the following conditions
8.\" are met: 8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright 9.\" 1. Redistributions of source code must retain the above copyright
10.\" notice, this list of conditions and the following disclaimer. 10.\" notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\" notice, this list of conditions and the following disclaimer in the 12.\" notice, this list of conditions and the following disclaimer in the
13.\" documentation and/or other materials provided with the distribution. 13.\" documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software 14.\" 3. All advertising materials mentioning features or use of this software
@@ -624,26 +624,32 @@ to be in production use, with the real c @@ -624,26 +624,32 @@ to be in production use, with the real c
624performance but instead a preference for more panics versus continued 624performance but instead a preference for more panics versus continued
625operation with undetected problems. 625operation with undetected problems.
626.It Cd options LOCKDEBUG 626.It Cd options LOCKDEBUG
627Adds code to the kernel to detect incorrect use of locking primitives 627Adds code to the kernel to detect incorrect use of locking primitives
628(mutex, rwlock). 628(mutex, rwlock).
629This code will cause the kernel to check for dead lock conditions. 629This code will cause the kernel to check for dead lock conditions.
630It will also check for memory being freed to not contain initialised 630It will also check for memory being freed to not contain initialised
631lock primitives. 631lock primitives.
632Functions for use in 632Functions for use in
633.Xr ddb 4 633.Xr ddb 4
634to check lock chains etc. are also enabled. 634to check lock chains etc. are also enabled.
635These checks are very expensive and can decrease performance on 635These checks are very expensive and can decrease performance on
636multi-processor machines by a factor of three. 636multi-processor machines by a factor of three.
 637.It Cd options KDTRACE_HOOKS
 638Adds hooks for the DTrace tracing facility, which allows users to
 639analyse many aspects of system and application behavior.
 640See
 641.Xr dtrace 1
 642for details.
637.It Cd options KSTACK_CHECK_MAGIC 643.It Cd options KSTACK_CHECK_MAGIC
638Check kernel stack usage and panic if stack overflow is detected. 644Check kernel stack usage and panic if stack overflow is detected.
639This check is performance sensitive because it scans stack on each context 645This check is performance sensitive because it scans stack on each context
640switch. 646switch.
641.It Cd options KTRACE 647.It Cd options KTRACE
642Add hooks for the system call tracing facility, which allows users to 648Add hooks for the system call tracing facility, which allows users to
643watch the system call invocation behavior of processes. 649watch the system call invocation behavior of processes.
644See 650See
645.Xr ktrace 1 651.Xr ktrace 1
646for details. 652for details.
647.It Cd options MSGBUFSIZE=integer 653.It Cd options MSGBUFSIZE=integer
648This option sets the size of the kernel message buffer. 654This option sets the size of the kernel message buffer.
649This buffer holds the kernel output of 655This buffer holds the kernel output of