From owner-freebsd-current Mon Aug 5 10:43:38 2002 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 CD0AC37B400 for ; Mon, 5 Aug 2002 10:43:34 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id CB65D43E3B for ; Mon, 5 Aug 2002 10:43:33 -0700 (PDT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 5 Aug 2002 18:43:33 +0100 (BST) To: current@freebsd.org Subject: kmod_syms.awk Date: Mon, 05 Aug 2002 18:43:32 +0100 From: Ian Dowse Message-ID: <200208051843.aa43072@salmon.maths.tcd.ie> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I noticed that kmod_syms.awk takes a long time to run on slow hardware when compiling modules. It seems the reason is that it is processing the binary .kld file as a export_syms file because the ARGIND variable does not exist in our awk. Any objections to the following workaround? Ian Index: kmod_syms.awk =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/conf/kmod_syms.awk,v retrieving revision 1.3 diff -u -r1.3 kmod_syms.awk --- kmod_syms.awk 19 Apr 2002 09:04:53 -0000 1.3 +++ kmod_syms.awk 5 Aug 2002 17:41:23 -0000 @@ -7,12 +7,11 @@ syms[$3] = $2 } } + delete ARGV[1] } # De-list symbols from the export list. { - if (ARGIND == 1) - nextfile delete syms[$0] } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message