ANDROID: added memory initialization tests to cuttlefish config

Build the cuttlefish kernel with CONFIG_TEST_STACKINIT=y and
CONFIG_TEST_MEMINIT=y to provide the tests for stack and heap
initialization.

Bug: 144999193
Test: run cuttlefish and observe the following lines in dmesg:
      test_stackinit: all tests passed!
      test_meminit: all 130 tests passed!

Change-Id: I044347880de82211d9a58449ee3e558c570bda31
Signed-off-by: Alexander Potapenko <glider@google.com>
This commit is contained in:
Alexander Potapenko 2020-02-14 00:19:58 +01:00
parent 18ee299fc6
commit 62772abfd9
2 changed files with 4 additions and 0 deletions

View File

@ -461,6 +461,8 @@ CONFIG_PANIC_TIMEOUT=5
CONFIG_SCHEDSTATS=y
CONFIG_RCU_CPU_STALL_TIMEOUT=60
CONFIG_ENABLE_DEFAULT_TRACERS=y
CONFIG_TEST_MEMINIT=y
CONFIG_TEST_STACKINIT=y
CONFIG_SECURITY=y
CONFIG_SECURITY_NETWORK=y
CONFIG_LSM_MMAP_MIN_ADDR=65536

View File

@ -484,6 +484,8 @@ CONFIG_PANIC_TIMEOUT=5
CONFIG_SCHEDSTATS=y
CONFIG_RCU_CPU_STALL_TIMEOUT=60
CONFIG_ENABLE_DEFAULT_TRACERS=y
CONFIG_TEST_MEMINIT=y
CONFIG_TEST_STACKINIT=y
CONFIG_IO_DELAY_NONE=y
CONFIG_OPTIMIZE_INLINING=y
CONFIG_UNWINDER_FRAME_POINTER=y