The ktracing code was not properly matching up VOP_OPEN and VOP_CLOSE calls.
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 17 May 2006 20:20:55 +0000 (20:20 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 17 May 2006 20:20:55 +0000 (20:20 +0000)
commit29f5839233b60ef105c2a0e35eaad656bb410abc
treed66a3b4010b5148dce87474517d8e6282754ff12
parent0406bae8e57199c9ff38b35956aafb9bb344a2d4
The ktracing code was not properly matching up VOP_OPEN and VOP_CLOSE calls.

Replace the p_tracep tracing vnode in struct proc with a pointer to
a ref-counted ktrace_node.  Ref the node instead of the vnode to prevent
the destruction of the vnode.
sys/kern/kern_exec.c
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_ktrace.c
sys/sys/ktrace.h
sys/sys/proc.h