xtensa: use generic tracehooks
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 16 Mar 2015 11:40:14 +0000 (14:40 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 1 May 2017 14:00:10 +0000 (07:00 -0700)
commitf984409a00e7d9aa40af64d7c9619e5de3d980bf
tree5ea7712929934f428eba2d59abf3eda6e6532d2b
parent0700ed072feffd65212e6a03840d19c4988d6820
xtensa: use generic tracehooks

Use tracehook_report_syscall_{entry,exit} instead of a local copy of it
in do_syscall_trace. Allow tracehook to cancel syscall by returning
invalid syscall number to the system_call function.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/ptrace.c