selftests/sgx: Dump enclave memory map
authorJarkko Sakkinen <jarkko@kernel.org>
Thu, 10 Jun 2021 08:30:19 +0000 (11:30 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 15 Jun 2021 22:27:07 +0000 (16:27 -0600)
commit040efd1c35f93787cbd26be6fc6493592571f424
treeea4981373a29bbd1ebbfed9ca75bb10db6c9f4a3
parent235d1c9c63088c33d746a1e7e92e15153b8d1192
selftests/sgx: Dump enclave memory map

Often, it's useful to check whether /proc/self/maps looks sane when
dealing with memory mapped objects, especially when they are JIT'ish
dynamically constructed objects. Therefore, dump "/dev/sgx_enclave"
matching lines from the memory map in FIXTURE_SETUP().

Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/sgx/main.c