]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/seccomp: add xtensa support
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 29 Nov 2019 08:43:58 +0000 (00:43 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 28 Jul 2020 07:57:06 +0000 (00:57 -0700)
commit768877beed015bcb215dae11f8ed5644bb7f12ec
treec58ac2002b0d93be7c991fddeb43ba8abf4fe997
parentda94a40f72859ce24dc72de9292981513a33e427
selftests/seccomp: add xtensa support

Xtensa syscall number can be obtained and changed through the
struct user_pt_regs. Syscall return value register is fixed relatively
to the current register window in the user_pt_regs, so it needs a bit of
special treatment.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
tools/testing/selftests/seccomp/seccomp_bpf.c