Date: Wed, 27 May 2009 14:17:41 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Stacey Son <sson@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r192859 - in head: share/man/man4 sys/conf sys/dev/ksyms sys/kern sys/modules sys/modules/ksyms sys/sys Message-ID: <20090527111741.GH1927@deviant.kiev.zoral.com.ua> In-Reply-To: <200905262139.n4QLd9pI074530@svn.freebsd.org> References: <200905262139.n4QLd9pI074530@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--RzyRI1FIOvhQ4MGO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=20 > 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. > =20 > 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 ? --RzyRI1FIOvhQ4MGO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkodIVUACgkQC3+MBN1Mb4itswCfZeXrSd7daKZO+83GSb240R+l jlYAoO8Qm5k3Iaz6qI7OLKjj5u7OqFPW =oLsD -----END PGP SIGNATURE----- --RzyRI1FIOvhQ4MGO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090527111741.GH1927>