From owner-freebsd-arch@FreeBSD.ORG Tue Jun 5 14:40:33 2012 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1B2D1065673 for ; Tue, 5 Jun 2012 14:40:33 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 92B7F8FC15 for ; Tue, 5 Jun 2012 14:40:33 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 92DCE6FE8; Tue, 5 Jun 2012 14:40:32 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 6B55D960F; Tue, 5 Jun 2012 16:40:32 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Konstantin Belousov References: <86bokyvtc2.fsf@ds4.des.no> <20120605143215.GL85127@deviant.kiev.zoral.com.ua> Date: Tue, 05 Jun 2012 16:40:32 +0200 In-Reply-To: <20120605143215.GL85127@deviant.kiev.zoral.com.ua> (Konstantin Belousov's message of "Tue, 5 Jun 2012 17:32:15 +0300") Message-ID: <86pq9dvn33.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: arch@freebsd.org Subject: Re: KTR_SPAREx X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2012 14:40:34 -0000 Konstantin Belousov writes: > Moving all device drivers to KTR_DEV makes the KTR unusable for device > driver debugging. When looking at the drm2 and gem traces, I do not want > to see other devices tracepoints. Amount of data from GEM is huge, and > obfuscating it with unrelated debugging recycles the ktr ring faster, asi= de > of making noise that cayses log to be meaningless. We only have a limited number of KTR types - 32, to be precise. We can't spare one for each driver, and there's no reason why *your* driver (for any value of "you") should get its own while everybody else shares KTR_DEV. If you think KTR_DEV is too noisy, add sysctls to enable or disable tracing on a per-device basis. It should be quite easy to generalize. (I still haven't gotten around to implementing a similar infrastructure for network interfaces...) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no