x86, selftests: Add single_step_syscall test
authorAndy Lutomirski <luto@kernel.org>
Wed, 15 Apr 2015 23:10:07 +0000 (16:10 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Apr 2015 10:41:49 +0000 (12:41 +0200)
commit0a15584d72760a3b83d97af85d37ffaa2c42068d
tree2d4820d541fd00505c3d179d982c3f4fef71e25a
parent6a16dda86ebbcfe690c753c3fb469b4f9ad5a5ef
x86, selftests: Add single_step_syscall test

This is a very simple test that makes system calls with TF set.

This test currently fails when running the 32-bit build on a
64-bit kernel on an Intel CPU.  This bug will be fixed by the
next commit.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Denys Vlasenko <vda.linux@googlemail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Shuah Khan <shuah.kh@samsung.com>
Link: http://lkml.kernel.org/r/20e68021155f6ab5c60590dcad81d37c68ea2c4f.1429139075.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/testing/selftests/x86/Makefile
tools/testing/selftests/x86/run_x86_tests.sh
tools/testing/selftests/x86/single_step_syscall.c [new file with mode: 0644]