From owner-freebsd-current@FreeBSD.ORG Sun Jan 30 15:34:22 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E60516A4CE for ; Sun, 30 Jan 2005 15:34:22 +0000 (GMT) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05E4B43D1D for ; Sun, 30 Jan 2005 15:34:20 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd08.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1CvH5e-0003xn-05; Sun, 30 Jan 2005 16:34:18 +0100 Received: from Andro-Beta.Leidinger.net (rXmlh6ZCQeBUyTbCcX2s0DgjiPhPJ8CLswLMjBR-2Hf+t8SHd-AWg0@[217.83.23.129]) by fmrl08.sul.t-online.com with esmtp id 1CvH5Y-0yKaHo0; Sun, 30 Jan 2005 16:34:12 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) j0UFY0cl072412; Sun, 30 Jan 2005 16:34:00 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Sun, 30 Jan 2005 16:34:20 +0100 From: Alexander Leidinger To: Max Laier Message-ID: <20050130163420.1574603b@Magellan.Leidinger.net> In-Reply-To: <200501291827.27506.max@love2party.net> References: <20050129161022.0de822fe@Magellan.Leidinger.net> <200501291827.27506.max@love2party.net> X-Mailer: Sylpheed-Claws 1.0.0 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ID: rXmlh6ZCQeBUyTbCcX2s0DgjiPhPJ8CLswLMjBR-2Hf+t8SHd-AWg0@t-dialin.net X-TOI-MSGID: f5d53d2c-954f-4670-b8b7-33d6eeacc286 cc: freebsd-current@freebsd.org Subject: Re: We have a lot of duplicated code in the kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2005 15:34:22 -0000 On Sat, 29 Jan 2005 18:27:17 +0100 Max Laier wrote: > Could you regenerate the list w/o the MD code, as a first step? This might > turn up a couple of "easy to fix" cases of shared code. Following is how I filter out the unwanted parts. Any ideas how to filter out the MD parts without losing the possibility to determine duplicated code for a specific architecture? Simian itself doesn't offers a good exclude feature. ---snip--- awk <"${log}.bak" ' BEGIN { found=0 last="" } { if(0 != match($0, "(twa_fwimg|trlld.m|if_patm_rtables)")) { next; } if(0 != index($0, "Found")) { found = 1; last = $0; } else if(0 != index($0, "Processed")) { found = 0; print $0; } else { if(1 == found) { found = 0; print last; } print $0; } }' >"${log}" ---snip--- ATM I just can suggest to read over the MD parts. Bye, Alexander. -- Where do you think you're going today? http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7