]> asedeno.scripts.mit.edu Git - linux.git/commit
xtensa: rearrange syscall tracing
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 25 Nov 2019 19:51:45 +0000 (11:51 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Fri, 29 Nov 2019 22:39:12 +0000 (14:39 -0800)
commitba9c1d65991a8be2e160447dd06eb803cbb9ba61
tree4ab61ab6b7bbb68a128a7a2a83551e5e901e067b
parentc2d9aa3b6e56de56c7f1ed9026ca6ec7cfbeef19
xtensa: rearrange syscall tracing

system_call saves and restores syscall number across system call to make
clone and execv entry and exit tracing match. This complicates things
when syscall code may be changed by ptrace.
Preserve syscall code in copy_thread and start_thread directly instead of
doing tricks in system_call.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/processor.h
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/process.c