Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys

Module Name:    src
Committed By:   darran
Date:           Sun Feb 21 02:11:40 UTC 2010

Modified Files:
        src/sys/arch/i386/i386: trap.c vector.S
        src/sys/kern: kern_lwp.c kern_proc.c kern_synch.c
        src/sys/sys: lwp.h proc.h
Added Files:
        src/sys/sys: dtrace_bsd.h

Log Message:
Add the DTrace hooks to the kernel (KDTRACE_HOOKS config option).
DTrace adds a pointer to the lwp and proc structures which it uses to
manage its state.  These are opaque from the kernel perspective to keep
the kernel free of CDDL code. The state arenas are kmem_alloced and freed
as proccesses and threads are created and destoyed.

Also add a check for trap06 (privileged/illegal instruction) so that
DTrace can check for D scripts that may have triggered the trap so it
can clean up after them and resume normal operation.

Ok with core@.

To generate a diff of this commit:
cvs rdiff -u -r1.253 -r1.254 src/sys/arch/i386/i386/trap.c
cvs rdiff -u -r1.51 -r1.52 src/sys/arch/i386/i386/vector.S
cvs rdiff -u -r1.137 -r1.138 src/sys/kern/kern_lwp.c
cvs rdiff -u -r1.159 -r1.160 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.275 -r1.276 src/sys/kern/kern_synch.c
cvs rdiff -u -r0 -r1.1 src/sys/sys/dtrace_bsd.h
cvs rdiff -u -r1.127 -r1.128 src/sys/sys/lwp.h
cvs rdiff -u -r1.294 -r1.295 src/sys/sys/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index