From 3ce51050fadd63737c03627293ca2dc4be238891 Mon Sep 17 00:00:00 2001 From: Tim Bird Date: Wed, 3 Dec 2014 10:42:21 -0800 Subject: 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 Reviewed-by: Josh Triplett Signed-off-by: Shuah Khan --- tools/testing/selftests/size/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/size/.gitignore (limited to 'tools/testing/selftests/size/.gitignore') diff --git a/tools/testing/selftests/size/.gitignore b/tools/testing/selftests/size/.gitignore new file mode 100644 index 000000000000..189b7818de34 --- /dev/null +++ b/tools/testing/selftests/size/.gitignore @@ -0,0 +1 @@ +get_size -- cgit v1.2.3-59-g8ed1b