Messages in this thread | | | Date | Sun, 31 May 1998 10:39:10 +0200 | From | Martin Mares <> | Subject | Re: [PATCH] /proc/config.gz (take #2) |
| |
Hi,
> I first want to thank everyone for their encourangement. I decided to try > and implement /proc/config as a gzip'd file. This is the result. > > A few notes: > [1] 2.1.104-pre1 -- pure stock > [2] 2.1.104-pre1 -- /proc/config.gz patch > > >From dmesg during kernel boot: > > [1] 780K kcode 392K reserved 768K kdata 28K init > [2] 780K kcode 392K reserved 722K kdata 28K init > > [1] bzImage 459101 > [2] bzImage 459844 > ====== > 743
zImage size doesn't matter. Runtime size does.
> And I don't understand the REDUCTION in kdata with my patch. But its > there.
This is highly improbable. Can you test it again?
> +proconfig: > + $(MAKE) -C scripts makeproconfig > + $(CONFIG_SHELL) scripts/makeproconfig.sh > $(TOPDIR)/kernel/config.c > + > oldconfig: symlinks scripts/split-include > $(CONFIG_SHELL) scripts/Configure -d arch/$(ARCH)/config.in > if [ -r include/linux/autoconf.h ]; then \ > scripts/split-include include/linux/autoconf.h include/config; \ > fi > + $(MAKE) proconfig
Is there any reason for not adding it at the end of split-include instead?
> - rm -f drivers/char/consolemap_deftbl.c drivers/char/conmakehash > + rm -f drivers/char/consolemap_deftbl.c drivers/char/conmakehash
What does change here?
> +makeproconfig: makeproconfig.c > + $(CC) makeproconfig.c -o makeproconfig > + > clean: > - rm -f *~ kconfig.tk *.o tkparse mkdep split-include > + rm -f *~ kconfig.tk *.o tkparse mkdep split-include makecloneconfig
makecloneconfig -> makeproconfig
> diff -Nur linux.104-prist/scripts/makeproconfig.c linux.104-config/scripts/makeproconfig.c > --- linux.104-prist/scripts/makeproconfig.c Wed Dec 31 19:00:00 1969 > +++ linux.104-config/scripts/makeproconfig.c Sat May 30 16:17:56 1998 > @@ -0,0 +1,21 @@ > +#include <stdio.h> > +#include <stdlib.h> > + > +int main(void) { > + int rows=0; > + char c; > + > + printf("unsigned char ucTable[]= {\n "); > + > + while (1) { > + c=getchar(); > + if (feof(stdin)) > + break; > + printf("0x%02X, ",(unsigned char)c); > + if (++rows%10==0) { > + printf("\n "); > + } > + } > + printf("\n};\n"); > + exit(0); > +}
Just move here drivers/sound/bin2hex.c and use it.
> +int get_proc_config(char *page) { > + memcpy(page,ucTable,sizeof(ucTable)); > + return sizeof(ucTable); > +}
What if it doesn't fit in a page?
Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "Mr. Worf, scan that ship." "Aye, Captain... 300 DPI?"
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |