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:   matt
Date:           Mon Jun 13 21:32:43 UTC 2011

Modified Files:
        src/sys/arch/alpha/alpha: core_machdep.c
        src/sys/arch/mips/mips: core_machdep.c
        src/sys/arch/powerpc/powerpc: core_machdep.c
        src/sys/kern: kern_lwp.c subr_pcu.c

Log Message:
Deal with PCU state when performing coredumps.  As the kernel moves each LWP
into LSSUSPENDED state, have that LWP save its PCU state for the coredump and
release its PCU status since its probably going to be exiting very soon.
Make pcu_save_all tolerate for being called for non-curlwp if that lwp belongs
to the same process, has a state of LSSUSPENDED, and no PCUs are in use.

Make the MD coredump code use pcu_save_all(l) since it'll need to save all
the PCU state anyways and can take advantage of the above tests.

To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/alpha/alpha/core_machdep.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mips/mips/core_machdep.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/powerpc/powerpc/core_machdep.c
cvs rdiff -u -r1.158 -r1.159 src/sys/kern/kern_lwp.c
cvs rdiff -u -r1.8 -r1.9 src/sys/kern/subr_pcu.c

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