diff options
author | sson <sson@FreeBSD.org> | 2009-05-26 21:39:09 +0000 |
---|---|---|
committer | sson <sson@FreeBSD.org> | 2009-05-26 21:39:09 +0000 |
commit | 527dd575556c8d79007e7a35cd752f1b46343fd2 (patch) | |
tree | 626fb22e642e1f12607624578d9f484a88a1e405 /sys/conf | |
parent | e8484adb4444a310104af340656308e3b8d60088 (diff) | |
download | FreeBSD-src-527dd575556c8d79007e7a35cd752f1b46343fd2.zip FreeBSD-src-527dd575556c8d79007e7a35cd752f1b46343fd2.tar.gz |
Add the ksyms(4) pseudo driver. The ksyms driver allows a process to
get a quick snapshot of the kernel's symbol table including the symbols
from any loaded modules (the symbols are all merged into one symbol
table). Unlike like other implementations, this ksyms driver maps
memory in the process memory space to store the snapshot at the time
/dev/ksyms is opened. It also checks to see if the process has already
a snapshot open and won't allow it to open /dev/ksyms it again until it
closes first. This prevents kernel and process memory from being
exhausted. Note that /dev/ksyms is used by the lockstat(1) command.
Reviewed by: gallatin kib (freebsd-arch)
Approved by: gnn (mentor)
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/NOTES | 3 | ||||
-rw-r--r-- | sys/conf/files | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 0e5bb44..a51beed 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -1080,6 +1080,9 @@ device random # The system memory devices; /dev/mem, /dev/kmem device mem +# The kernel symbol table device; /dev/ksyms +device ksyms + # Optional character code conversion support with LIBICONV. # Each option requires their base file system and LIBICONV. options CD9660_ICONV diff --git a/sys/conf/files b/sys/conf/files index 86280ef..6500775 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1085,6 +1085,7 @@ dev/joy/joy.c optional joy dev/joy/joy_isa.c optional joy isa dev/joy/joy_pccard.c optional joy pccard dev/kbdmux/kbdmux.c optional kbdmux +dev/ksyms/ksyms.c optional ksyms dev/le/am7990.c optional le dev/le/am79900.c optional le dev/le/if_le_pci.c optional le pci |