Add in documentation and examples of the KTR kernel config options.

Prompted by:	phk's kernel include script
This commit is contained in:
John Baldwin 2000-09-21 06:50:02 +00:00
parent 4a8612fd41
commit c508c1b632
2 changed files with 38 additions and 0 deletions

View File

@ -321,6 +321,25 @@ options GDB_REMOTE_CHAT
#
options KTRACE #kernel tracing
#
# KTR is a kernel tracing mechanism imported from BSD/OS. Currently it
# has no userland interface aside from a few sysctl's. It is enabled with
# the KTR option. The KTR_EXTEND option causes trace events to be generated
# as a string from snprintf rather than as a string and up to 5 argument
# pointers. KTR_ENTRIES defines the number of entries in the circular trace
# buffer. KTR_COMPILE defines the mask of events to compile into the kernel
# as defined by the KTR_* constants in <sys/ktr.h>. KTR_MASK defines the
# initial value of the ktr_mask variable which determines at runtime what
# events to trace. KTR_CPUMASK determines which CPU's log events, with
# bit X corresponding to cpu X.
#
options KTR
options KTR_EXTEND
options KTR_ENTRIES=1024
options KTR_COMPILE=0x3fffff
options KTR_MASK=0x201208
options KTR_CPUMASK=0x3
#
# The INVARIANTS option is used in a number of source files to enable
# extra sanity checking of internal structures. This support is not

View File

@ -321,6 +321,25 @@ options GDB_REMOTE_CHAT
#
options KTRACE #kernel tracing
#
# KTR is a kernel tracing mechanism imported from BSD/OS. Currently it
# has no userland interface aside from a few sysctl's. It is enabled with
# the KTR option. The KTR_EXTEND option causes trace events to be generated
# as a string from snprintf rather than as a string and up to 5 argument
# pointers. KTR_ENTRIES defines the number of entries in the circular trace
# buffer. KTR_COMPILE defines the mask of events to compile into the kernel
# as defined by the KTR_* constants in <sys/ktr.h>. KTR_MASK defines the
# initial value of the ktr_mask variable which determines at runtime what
# events to trace. KTR_CPUMASK determines which CPU's log events, with
# bit X corresponding to cpu X.
#
options KTR
options KTR_EXTEND
options KTR_ENTRIES=1024
options KTR_COMPILE=0x3fffff
options KTR_MASK=0x201208
options KTR_CPUMASK=0x3
#
# The INVARIANTS option is used in a number of source files to enable
# extra sanity checking of internal structures. This support is not