Skip to content
Commit 3ce51050 authored by Tim Bird's avatar Tim Bird Committed by Shuah Khan
Browse files

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: default avatarTim Bird <tim.bird@sonymobile.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 4c12df63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment