]> git.baikalelectronics.ru Git - kernel.git/commit
selftest: size: Add size test for Linux kernel
authorTim Bird <tim.bird@sonymobile.com>
Wed, 3 Dec 2014 18:42:21 +0000 (10:42 -0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 4 Dec 2014 02:27:47 +0000 (19:27 -0700)
commit3e6951148eb552e3167c654d1d339983c5198bab
treee5d3824e81854ab42afc3cb47c1524c23be6a6b3
parent74d28d38eb121599ac3ab056ba1755468ab18616
selftest: size: Add size test for Linux kernel

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 of the system software.
The code is compiled statically, with no stdlibs. On my x86_64 system,
this results in a statically linked binary of less than 5K.

Signed-off-by: Tim Bird <tim.bird@sonymobile.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/Makefile
tools/testing/selftests/size/.gitignore [new file with mode: 0644]
tools/testing/selftests/size/Makefile [new file with mode: 0644]
tools/testing/selftests/size/get_size.c [new file with mode: 0644]