Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2007 08:56:47 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Fwd: Re: Merging usbdevs files from others BSD
Message-ID:  <200707060856.47597.hselasky@c2i.net>

next in thread | raw e-mail | index | archive | help
Hi,

I'm forwarding this.

--HPS

----------  Forwarded Message  ----------

Subject: Re: Merging usbdevs files from others BSD
Date: Friday 06 July 2007 03:14
From: Arnaud Lacombe <lacombar@gmail.com>
To: tech-kern@netbsd.org

On Wed, Jul 04, 2007 at 12:17:33PM +0200, Bernd Ernesti wrote:
> Then there is the different short vs. long names, which was allready
> mentioned that this would increase the kernel size and the additional new
> entries.

On the vendor point of view, the difference between long and short names is
 not really significative. But on the product point of view, out product's
 description are often longer.

After a build-test, I get this:

   text    data     bss     dec     hex filename
9089612  420996  365084 9875692  96b0ec nbsd-notverb.new
9089644  420996  365084 9875724  96b10c nbsd-notverb.old
9137009  420996  365084 9923089  976a11 nbsd-verb.new
9126611  420996  365084 9912691  974173 nbsd-verb.old

For USBVERBOSE kernel, we have a 10k size increase for approximatively 500
 new entries (150 vendors and 350 products). This give 20 bytes for each new
 entry, I find this reasonable.

The usbdevs file used for this build can be found here:

http://www.netbsd.org/~alc/usbdevs/usbdevs

You'll also need this patch to match the few changes made to the names :
http://www.netbsd.org/~alc/usbdevs/usbdevs-changes.diff

 - Arnaud

-------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707060856.47597.hselasky>