On Wed, Apr 20, 2016 at 03:31:12PM +0200, Linus Walleij wrote:
> On Tue, Apr 19, 2016 at 5:52 AM, Isaac Dunham <[email protected]> wrote:
> > On Mon, Apr 18, 2016 at 11:31:27AM +0200, Linus Walleij wrote:
> >> On Wed, Apr 13, 2016 at 2:37 PM, Linus Walleij <[email protected]> 
> >> wrote:
> >>
> >> (...)
> >> > This switches from using /sys/class as the place to look for
> >> > devices to create to using /sys/dev where all char and block
> >> > devices are listed.
> >
> > In practical terms, kernels older than 2.6.26 will no longer work with
> > mdev -s, and devices with no class will start showing up.
> > (2.6.26 added /sys/dev/)
> 
> OK that is a good piece of information.
> 
> > FWIW, I'm for it, though I'd like to hear if anyone is using new busybox
> > with 'vendor'/'BSP' kernels that are old enough for this to be problematic,
> > yet new enough to need mdev (ie, from 2.6.18 or somewhat newer,
> > to 2.6.25).
> 
> Me too. I can of course preserve the /sys/class and even
> /sys/block behaviour, I just wanted this more brutal approach
> in order to save bloat.
> 
> > Also, bloatcheck would be interesting...I might see about that.
> 

Alpine Linux/x86, musl, gcc 5.3.0, roughly defconfig:

function                                             old     new   delta
strncat                                                -      56     +56
mdev_main                                           1500    1450     -50
dirAction                                            150      14    -136
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/2 up/down: 56/-186)          Total: -130 bytes
   text    data     bss     dec     hex filename
 896163    6751    6948  909862   de226 busybox_old
 896263    6751    6948  909962   de28a busybox_unstripped

Thanks,
Isaac Dunham
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to