Date: Fri, 25 Apr 2003 12:59:35 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_ktrace.c Message-ID: <200304251959.h3PJxZhZ075361@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2003/04/25 12:59:35 PDT FreeBSD src repository Modified files: sys/kern kern_ktrace.c Log: - Push down Giant around vnode operations in ktrace(). - Mark the ktrace() and utrace() syscalls as being MP safe. - Validate the facs argument to ktrace() prior to doing any vnode operations or acquiring any locks. - Share lock the proctree lock over the entire section that calls ktrsetchildren() and ktrops(). We already did this for process groups. Doing it for the process case closes a small race where a process might go away after we look it up. As a result of this, ktrstchildren() now just asserts that the proctree lock is locked rather than acquiring the lock itself. - Add some missing comments to #else and #endif. Revision Changes Path 1.84 +39 -22 src/sys/kern/kern_ktrace.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304251959.h3PJxZhZ075361>