diff options
author | Tim Bird <tim.bird@sonymobile.com> | 2014-12-03 21:42:21 +0300 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2014-12-04 05:27:47 +0300 |
commit | 3ce51050fadd63737c03627293ca2dc4be238891 (patch) | |
tree | e5d3824e81854ab42afc3cb47c1524c23be6a6b3 /tools/testing/selftests/Makefile | |
parent | 4c12df63f7ff27fe2e14f243a6906ad84e641964 (diff) |
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>
Diffstat (limited to 'tools/testing/selftests/Makefile')
-rw-r--r-- | tools/testing/selftests/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 45f145c6f843..fa91aefc8d19 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -15,6 +15,7 @@ TARGETS += user TARGETS += sysctl TARGETS += firmware TARGETS += ftrace +TARGETS += size TARGETS_HOTPLUG = cpu-hotplug TARGETS_HOTPLUG += memory-hotplug |