aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/syscall.S
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2009-04-26 23:53:34 -0400
committerKyle McMartin <kyle@ihatethathostname.lab.bos.redhat.com>2009-09-27 23:07:21 -0400
commitd6b58772dc39262629708e5f3c30ef06de290894 (patch)
treebed61d5aea5f655ca86a064f441df2f505e769e9 /arch/parisc/kernel/syscall.S
parent17d857be649a21ca90008c6dc425d849fa83db5c (diff)
parisc: tracehook_report_syscall
This makes parisc use the standard tracehook_report_syscall_entry and tracehook_report_syscall_exit hooks in <linux/tracehook.h>. To do this, we need to access current->thread.regs, and to know whether we're entering or exiting the syscall, so add this to syscall_trace. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/kernel/syscall.S')
-rw-r--r--arch/parisc/kernel/syscall.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S
index 59fc1a43ec3e..5698668166cd 100644
--- a/arch/parisc/kernel/syscall.S
+++ b/arch/parisc/kernel/syscall.S
@@ -288,6 +288,7 @@ tracesys:
288 STREG %r18,PT_GR18(%r2) 288 STREG %r18,PT_GR18(%r2)
289 /* Finished saving things for the debugger */ 289 /* Finished saving things for the debugger */
290 290
291 ldi 0,%r26 /* syscall entry */
291 ldil L%syscall_trace,%r1 292 ldil L%syscall_trace,%r1
292 ldil L%tracesys_next,%r2 293 ldil L%tracesys_next,%r2
293 be R%syscall_trace(%sr7,%r1) 294 be R%syscall_trace(%sr7,%r1)
@@ -336,6 +337,7 @@ tracesys_exit:
336#ifdef CONFIG_64BIT 337#ifdef CONFIG_64BIT
337 ldo -16(%r30),%r29 /* Reference param save area */ 338 ldo -16(%r30),%r29 /* Reference param save area */
338#endif 339#endif
340 ldi 1,%r26 /* syscall exit */
339 bl syscall_trace, %r2 341 bl syscall_trace, %r2
340 STREG %r28,TASK_PT_GR28(%r1) /* save return value now */ 342 STREG %r28,TASK_PT_GR28(%r1) /* save return value now */
341 ldo -THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r1 /* get task ptr */ 343 ldo -THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r1 /* get task ptr */
@@ -358,7 +360,7 @@ tracesys_sigexit:
358 ldo -16(%r30),%r29 /* Reference param save area */ 360 ldo -16(%r30),%r29 /* Reference param save area */
359#endif 361#endif
360 bl syscall_trace, %r2 362 bl syscall_trace, %r2
361 nop 363 ldi 1,%r26 /* syscall exit */
362 364
363 ldil L%syscall_exit_rfi,%r1 365 ldil L%syscall_exit_rfi,%r1
364 be,n R%syscall_exit_rfi(%sr7,%r1) 366 be,n R%syscall_exit_rfi(%sr7,%r1)