Re: [PATCH v4] selftest: size: Add size test for Linux kernel

2014-12-02 Thread Tim Bird
On 11/26/2014 10:04 PM, Josh Triplett wrote: > On Wed, Nov 26, 2014 at 08:27:23PM -0800, Tim Bird wrote: >> --- /dev/null >> +++ b/tools/testing/selftests/size/Makefile > [...] >> +LIBGCC=$(shell $(CC) -print-libgcc-file-name) >> + >> +get_size: get_size.c >> +$(CC) --static -ffreestanding -n

Re: [PATCH v4] selftest: size: Add size test for Linux kernel

2014-11-26 Thread Josh Triplett
On Wed, Nov 26, 2014 at 08:27:23PM -0800, Tim Bird wrote: > --- /dev/null > +++ b/tools/testing/selftests/size/Makefile [...] > +LIBGCC=$(shell $(CC) -print-libgcc-file-name) > + > +get_size: get_size.c > + $(CC) --static -ffreestanding -nostartfiles \ > + -Wl,--entry=_start get_siz

[PATCH v4] selftest: size: Add size test for Linux kernel

2014-11-26 Thread Tim Bird
This test shows the amount of memory used by the system. Note that this is dependent on the user-space that is loaded when this program runs. Optimally, this program would be run as the init program itself. The program is optimized for size itself, to avoid conflating its own execution with that