Author: marcel Date: Wed Jul 2 22:13:07 2014 New Revision: 268186 URL: http://svnweb.freebsd.org/changeset/base/268186
Log: Drop KTR records when we're in the debugger so that the debugger isn't changing or overwriting the trace buffer. When KTR is enabled for things like traps or pmap functions, the amount of logging can be substantial. Modified: head/sys/kern/kern_ktr.c Modified: head/sys/kern/kern_ktr.c ============================================================================== --- head/sys/kern/kern_ktr.c Wed Jul 2 22:09:06 2014 (r268185) +++ head/sys/kern/kern_ktr.c Wed Jul 2 22:13:07 2014 (r268186) @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include <sys/alq.h> #include <sys/cons.h> #include <sys/cpuset.h> +#include <sys/kdb.h> #include <sys/kernel.h> #include <sys/ktr.h> #include <sys/libkern.h> @@ -323,7 +324,7 @@ ktr_tracepoint(u_int mask, const char *f #endif int cpu; - if (panicstr) + if (panicstr || kdb_active) return; if ((ktr_mask & mask) == 0 || ktr_buf == NULL) return; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"