diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2014-10-04 18:38:14 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2014-10-04 18:38:14 +0000 |
commit | b76278407dc1b20319f598998ce72d13ada7cc6b (patch) | |
tree | 26e15f4bba226f143f97e6fd7e161025893c94d5 /sys/conf | |
parent | 539c9eef121048744297b62672ff49374b847946 (diff) | |
download | src-b76278407dc1b20319f598998ce72d13ada7cc6b.tar.gz src-b76278407dc1b20319f598998ce72d13ada7cc6b.zip |
Add kernel option KSTACK_USAGE_PROF to sample the stack depth on
interrupts and report the largest value seen as sysctl
debug.max_kstack_used. Useful to estimate how close the kernel stack
size is to overflow.
In collaboration with: Larry Baird <lab@gta.com>
Sponsored by: The FreeBSD Foundation (kib)
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=272536
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/NOTES | 1 | ||||
-rw-r--r-- | sys/conf/options | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 5baa306c99db..5cc146eb6b49 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -2958,6 +2958,7 @@ options SC_RENDER_DEBUG # syscons rendering debugging options VFS_BIO_DEBUG # VFS buffer I/O debugging options KSTACK_MAX_PAGES=32 # Maximum pages to give the kernel stack +options KSTACK_USAGE_PROF # Adaptec Array Controller driver options options AAC_DEBUG # Debugging levels: diff --git a/sys/conf/options b/sys/conf/options index 42113c35bd3e..83375217f89a 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -136,6 +136,7 @@ KDTRACE_FRAME opt_kdtrace.h KN_HASHSIZE opt_kqueue.h KSTACK_MAX_PAGES KSTACK_PAGES +KSTACK_USAGE_PROF KTRACE KTRACE_REQUEST_POOL opt_ktrace.h LIBICONV |