svn commit: r192859 - in head: share/man/man4 sys/conf
sys/dev/ksyms sys/kern sys/modules sys/modules/ksyms sys/sys
Kostik Belousov
kostikbel at gmail.com
Wed May 27 11:17:50 UTC 2009
On Tue, May 26, 2009 at 09:39:09PM +0000, Stacey Son wrote:
> Author: sson
> Date: Tue May 26 21:39:09 2009
> New Revision: 192859
> URL: http://svn.freebsd.org/changeset/base/192859
>
> Log:
> 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)
What is the reason to have ksyms_unmap() ? Why do you think that checking
for the present mapping of the freed region is neccessary ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20090527/e38b024a/attachment.pgp
More information about the svn-src-head
mailing list