Age | Commit message (Collapse) | Author |
|
hush: move fixed testsuites out of hush-bugs/*
|
|
|
|
|
|
hush-bugs/tick2.tests: ok
hush-bugs/tick.tests: ok
function old new delta
parse_stream 1332 1557 +225
b_addptr - 97 +97
add_till_backquote - 82 +82
b_addstr - 58 +58
b_grow_by - 50 +50
setup_string_in_str - 29 +29
expand_variables 1196 1199 +3
expand_on_ifs 100 97 -3
b_addqchr 57 50 -7
parse_and_run_string 48 31 -17
lookup_param 27 - -27
b_addchr 75 45 -30
count_ifs 44 - -44
process_command_subs 222 - -222
------------------------------------------------------------------------------
(add/remove: 5/3 grow/shrink: 2/4 up/down: 544/-350) Total: 194 bytes
text data bss dec hex filename
759354 604 6684 766642 bb2b2 busybox_old
759534 604 6684 766822 bb366 busybox_unstripped
|
|
|
|
hush: remove wrong comment, expand another one
|
|
|
|
|
|
Fixed allocation bugs (it was allocating
one too small vectors) but it still is very buggy,
thus not applied.
|
|
|
|
make help text more understandable
|
|
|
|
text data bss dec hex filename
809731 624 7060 817415 c7907 busybox_old
809629 624 7060 817313 c78a1 busybox_unstripped
|
|
function old new delta
iproute_list_or_flush 1270 1300 +30
|
|
text data bss dec hex filename
2221 0 0 2221 8ad busybox.t5/networking/ifenslave.o
2215 0 0 2215 8a7 busybox.t6/networking/ifenslave.o
|
|
|
|
ifenslave: reorder functions to avoid forward declarations
function old new delta
enslave - 531 +531
get_drv_info - 176 +176
ifenslave_main 1411 671 -740
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/1 up/down: 707/-740) Total: -33 bytes
text data bss dec hex filename
809737 624 7060 817421 c790d busybox_old
809704 624 7060 817388 c78ec busybox_unstripped
|
|
ifenslave: shrink
function old new delta
set_hwaddr - 45 +45
set_ifrname_and_do_ioctl - 26 +26
set_mtu - 25 +25
ioctl_on_skfd - 13 +13
static.ifenslave_longopts 31 34 +3
set_if_up 39 36 -3
set_if_down 39 36 -3
set_if_flags 38 26 -12
static.ifra 32 16 -16
get_slave_flags 40 24 -16
get_if_settings 98 67 -31
set_slave_mtu 37 - -37
set_slave_hwaddr 52 - -52
set_master_hwaddr 52 - -52
ifenslave_main 1566 1411 -155
------------------------------------------------------------------------------
(add/remove: 4/3 grow/shrink: 1/7 up/down: 112/-377) Total: -265 bytes
text data bss dec hex filename
810002 624 7060 817686 c7a16 busybox_old
809737 624 7060 817421 c790d busybox_unstripped
|
|
|
|
Mostly by Natanael Copa <natanael.copa AT gmail.com>
function old new delta
print_e2flags - 189 +189
print_flags_separated - 86 +86
static.flag_labels - 60 +60
static.dma_wmode_masks - 32 +32
static.flag_masks - 28 +28
static.arp_labels - 16 +16
static.arp_masks - 12 +12
ls_main 836 843 +7
...
popstring 140 134 -6
arp_show 740 708 -32
print_flags 189 25 -164
ipaddr_list_or_flush 2396 2170 -226
process_dev 5306 4706 -600
------------------------------------------------------------------------------
(add/remove: 10/0 grow/shrink: 5/10 up/down: 458/-1043) Total: -585 bytes
text data bss dec hex filename
810564 624 7060 818248 c7c48 busybox_old
810002 624 7060 817686 c7a16 busybox_unstripped
|
|
|
|
and add #include to pull in __be32 typedef.
|
|
diff: small code shrink
function old new delta
grep_main 722 714 -8
diffreg 1825 1793 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-40) Total: -40 bytes
|
|
Document in comments that it generally should be thers,
not in LDFLAGS
|
|
klogd: by using a register instead of global variable, shrink code a bit
function old new delta
klogd_main 372 362 -10
packed_usage 24504 24486 -18
text data bss dec hex filename
808464 642 7180 816286 c749e busybox_old
808422 642 7180 816244 c7474 busybox_unstripped
|
|
|
|
|
|
~50 bytes code growth.
|
|
real support (with CONFIG_DESKTOP=y): 120+ bytes:
text data bss dec hex filename
807958 624 7036 815618 c7202 busybox_old
808085 624 7036 815745 c7281 busybox_unstripped
"fake" support (with CONFIG_DESKTOP unset): ~45 bytes:
text data bss dec hex filename
797790 611 6996 805397 c4a15 busybox_old
797834 611 6996 805441 c4a41 busybox_unstripped
|
|
error out if it's missing. (Peter Korsgaard)
|
|
function old new delta
mktemp_main 157 174 +17
packed_usage 24508 24504 -4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 17/-4) Total: 13 bytes
|
|
|
|
|
|
|
|
function old new delta
iprule_list 86 82 -4
print_rule 860 791 -69
ipaddr_list_or_flush 2484 2384 -100
print_addrinfo 1498 1292 -206
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-379) Total: -379 bytes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
We would try to be clever and compare the *data instead of the *elt.
Somethink like this might be of more general use:
/* Unlink arbitrary element from the list that contains data */
void llist_unlink_data(llist_t **head, void *data)
{
llist_t *elt;
for (elt = *head; elt; elt = elt->link) {
if (elt->data == data) {
llist_unlink(elt);
return;
}
}
}
|
|
|
|
|
|
|
|
|
|
Thanks to Paulius Zaleckas for mentioning this.
|
|
|