Date: Thu, 13 Mar 2003 10:31:15 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_ktrace.c src/sys/sys ktrace.h Message-ID: <200303131831.h2DIVFbb075792@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2003/03/13 10:31:15 PST FreeBSD src repository Modified files: sys/kern kern_ktrace.c sys/sys ktrace.h Log: Add a new userland-visible ktrace flag KTR_DROP and an internal ktrace flag KTRFAC_DROP to track instances when ktrace events are dropped due to the request pool being exhausted. When a thread tries to post a ktrace event and is unable to due to no available ktrace request objects, it sets KTRFAC_DROP in its process' p_traceflag field. The next trace event to successfully post from that process will set the KTR_DROP flag in the header of the request going out and clear KTRFAC_DROP. The KTR_DROP flag is the high bit in the type field of the ktr_header structure. Older kdump binaries will simply complain about an unknown type when seeing an entry with KTR_DROP set. Note that KTR_DROP being set on a record in a ktrace file does not tell you anything except that at least one event from this process was dropped prior to this event. The user has no way of knowing what types of events were dropped nor how many were dropped. Requested by: phk Revision Changes Path 1.83 +6 -1 src/sys/kern/kern_ktrace.c 1.26 +7 -0 src/sys/sys/ktrace.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303131831.h2DIVFbb075792>