lspci lsusb

Souf Oued souf_oued at yahoo.fr
Sat Nov 21 17:17:25 UTC 2009


I rewrote 2 separated applets: lspci and lsusb

busybox --help
Currently defined functions:
         [, [[, ash, basename, blkid, cat, chgrp, chmod, chown, chroot, 
cksum, cp, cttyhack, cut, date, dd, depmod, dirname, dmesg, 
dnsdomainname, eject, false, halt, hostname, init, insmod, kill, 
killall, killall5, ln, ls, lsmod, lzmacat, mdev, mkdir, mktemp, 
modprobe, mv, ping, poweroff, pwd, readlink, realpath, reboot, rm, 
rmdir, rmmod, run-parts, sh, sleep, start-stop-daemon, stty, tar, test, 
touch, true, tty, uname, unlzma, usleep, wget, which, who, whoami, yes


in 32 bits environment:

lspci
scripts/bloat-o-meter busybox_unstripped ../aa/busybox_unstripped
function                                             old     new   delta
applet_nameofs                                       132     130      -2
applet_main                                          264     260      -4
applet_names                                         405     399      -6
packed_usage                                        4991    4950     -41
lspci_main                                            58       -     -58
.rodata                                            22686   22488    -198
fileAction                                           904     433    -471
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/6 up/down: 0/-780)     Total: -780 bytes

size lspci.o
    text    data     bss     dec     hex filename
     684       0       0     684     2ac lspci.o

===============================================================================================
lsusb

scripts/bloat-o-meter busybox_unstripped ../aa/busybox_unstripped
function                                             old     new   delta
packed_usage                                        4938    4950     +12
applet_nameofs                                       132     130      -2
applet_main                                          264     260      -4
applet_names                                         405     399      -6
lsusb_main                                            38       -     -38
.rodata                                            22576   22488     -88
fileAction                                           701     433    -268
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/5 up/down: 12/-406)    Total: -394 bytes

size lsusb.o
    text    data     bss     dec     hex filename
     394       0       0     394     18a lsusb.o


in 64 bits environment:

lspci:
scripts/bloat-o-meter ../aa/busybox_unstripped busybox_unstripped
function                                             old     new   delta
fileAction                                           489     995    +506
lspci_main                                             -      77     +77
packed_usage                                        4950    4991     +41
xstrtou                                                -      13     +13
applet_main                                          520     528      +8
applet_names                                         399     405      +6
applet_nameofs                                       130     132      +2
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 5/0 up/down: 653/0)       Total: 653 bytes

size(lspci.o)
text    data     bss     dec     hex filename
  850       0       0     850     352 lspci.o


lsusb:
scripts/bloat-o-meter ../aa/busybox_unstripped busybox_unstripped
function                                             old     new   delta
fileAction                                           489     794    +305
lsusb_main                                             -      46     +46
xstrtou                                                -      13     +13
applet_main                                          520     528      +8
applet_names                                         399     405      +6
applet_nameofs                                       130     132      +2
packed_usage                                        4950    4938     -12
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/1 up/down: 380/-12)     Total: 368 bytes

size(lsusb.o)
text    data     bss     dec     hex filename
  543       0       0     543     21f lsusb.o
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lspci.patch
Type: text/x-patch
Size: 5329 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091121/5683a108/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lsusb.patch
Type: text/x-patch
Size: 4283 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091121/5683a108/attachment-0003.bin>


More information about the busybox mailing list