From owner-freebsd-hackers Wed Feb 13 10:44: 3 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by hub.freebsd.org (Postfix) with ESMTP id A613B37B431; Wed, 13 Feb 2002 10:43:47 -0800 (PST) Received: (from olli@localhost) by lurza.secnetix.de (8.11.6/8.11.6) id g1DIhjM71789; Wed, 13 Feb 2002 19:43:45 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Date: Wed, 13 Feb 2002 19:43:45 +0100 (CET) Message-Id: <200202131843.g1DIhjM71789@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, freebsd-sparc@FreeBSD.ORG Subject: Re: AWK/perl hacker needed to assist the Sparc64 port In-Reply-To: <20020212084918.A69309@dragon.nuxi.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.5-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David O'Brien wrote: > In rev 1.20 of sys/kern/vnode_if.pl Eivind converted this from a > Bourne+AWK script into a Perl script. I wonder, why? > Well that just makes porting to > new architectures VERY difficult as the boot strapping of Perl 5 is quite > difficult. > > A shell hacker could really help out the FreeBSD/sparc64 porting effort > by updating vnode_if.pl rev 1.19 to have all the functionality the perl > version has today. http://www.secnetix.de/~olli/tmp/vnode_if.awk It's a pretty straight-forward port of the perl version (vnode_if.pl r1.28). Output is the same, byte for byte (including the vfs locks debug output when enabled). It runs faster, is smaller and easier to read. ;-) I also took the opportunity to clean the code up and make it style(9) compliant, as far as possible (it's an advan- tage that awk syntax looks a lot like C). It's a simple drop-in replacement. In the kernel Makefile, replace ``perl5 vnode_if.pl'' with ``awk -f vnode_if.awk''. However, note that I've only tested it with gnu-awk. It _should_ run with the awk in -current, too, but I have no way to test that right now. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message