cvs commit: src/sys/kern kern_ktrace.c

John Baldwin jhb at FreeBSD.org
Fri Apr 25 12:59:37 PDT 2003


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


More information about the cvs-src mailing list