Date: Tue, 26 May 2009 21:39:09 +0000 (UTC) From: Stacey Son <sson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/share/man/man4 Makefile ksyms.4 src/sys/conf NOTES files src/sys/dev/ksyms ksyms.c src/sys/kern link_elf.c link_elf_obj.c linker_if.m src/sys/modules Makefile src/sys/modules/ksyms Makefile src/sys/sys ksyms.h Message-ID: <200905262142.n4QLggpD050535@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
sson 2009-05-26 21:39:09 UTC FreeBSD src repository Modified files: share/man/man4 Makefile sys/conf NOTES files sys/kern link_elf.c link_elf_obj.c linker_if.m sys/modules Makefile Added files: share/man/man4 ksyms.4 sys/dev/ksyms ksyms.c sys/modules/ksyms Makefile sys/sys ksyms.h Log: SVN rev 192859 on 2009-05-26 21:39:09Z by sson 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) Revision Changes Path 1.450 +1 -0 src/share/man/man4/Makefile 1.1 +158 -0 src/share/man/man4/ksyms.4 (new) 1.1540 +3 -0 src/sys/conf/NOTES 1.1405 +1 -0 src/sys/conf/files 1.1 +678 -0 src/sys/dev/ksyms/ksyms.c (new) 1.103 +30 -0 src/sys/kern/link_elf.c 1.105 +30 -0 src/sys/kern/link_elf_obj.c 1.9 +18 -0 src/sys/kern/linker_if.m 1.614 +1 -0 src/sys/modules/Makefile 1.1 +10 -0 src/sys/modules/ksyms/Makefile (new) 1.1 +37 -0 src/sys/sys/ksyms.h (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905262142.n4QLggpD050535>