Date: Wed, 2 Jul 2014 22:13:08 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268186 - head/sys/kern Message-ID: <201407022213.s62MD8DQ027145@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407022213.s62MD8DQ027145>