diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2013-01-21 19:54:57 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-03-22 15:46:18 -0400 |
commit | ef567f25d5d9d803b89bc2aec6bb71fe8b4bebd9 (patch) | |
tree | e17d273b2a98d2cdd94eef15eb4cf41c376248b3 /arch/tile/kernel/intvec_64.S | |
parent | 6e4a2f7f94cbac4e1f111f604ccf57dcbdef0a81 (diff) | |
download | op-kernel-dev-ef567f25d5d9d803b89bc2aec6bb71fe8b4bebd9.zip op-kernel-dev-ef567f25d5d9d803b89bc2aec6bb71fe8b4bebd9.tar.gz |
tile: support TIF_SYSCALL_TRACEPOINT; select HAVE_SYSCALL_TRACEPOINTS
This patch adds support for the TIF_SYSCALL_TRACEPOINT on the tile
architecture. Basically, it calls the appropriate tracepoints on syscall
entry and exit.
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/intvec_64.S')
-rw-r--r-- | arch/tile/kernel/intvec_64.S | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/tile/kernel/intvec_64.S b/arch/tile/kernel/intvec_64.S index 21991f7..85d4839 100644 --- a/arch/tile/kernel/intvec_64.S +++ b/arch/tile/kernel/intvec_64.S @@ -1000,8 +1000,11 @@ handle_syscall: /* Trace syscalls, if requested. */ addi r31, r31, THREAD_INFO_FLAGS_OFFSET - ld r30, r31 - andi r30, r30, _TIF_SYSCALL_TRACE + { + ld r30, r31 + moveli r32, _TIF_SYSCALL_ENTRY_WORK + } + and r30, r30, r32 { addi r30, r31, THREAD_INFO_STATUS_OFFSET - THREAD_INFO_FLAGS_OFFSET beqzt r30, .Lrestore_syscall_regs @@ -1074,8 +1077,11 @@ handle_syscall: FEEDBACK_REENTER(handle_syscall) /* Do syscall trace again, if requested. */ - ld r30, r31 - andi r0, r30, _TIF_SYSCALL_TRACE + { + ld r30, r31 + moveli r32, _TIF_SYSCALL_EXIT_WORK + } + and r0, r30, r32 { andi r0, r30, _TIF_SINGLESTEP beqzt r0, 1f |