diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-11-10 18:15:50 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-11-10 18:15:50 +0000 |
commit | 7c2c0cece14deee41a6cc3def2928808d73881b0 (patch) | |
tree | 871f91c39959ffa32ae5ac773513265eb121d8c9 /sys/arch/powerpc | |
parent | 38a9424b2fc187e798fe3a91366490408b112921 (diff) |
Change the ktrace interface functions from taking the trace vnode to taking the
traced proc. The vnode is in the proc and all functions need the proc.
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/powerpc/trap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c index 998ecd50c1c..94530e7b397 100644 --- a/sys/arch/powerpc/powerpc/trap.c +++ b/sys/arch/powerpc/powerpc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.20 2000/09/06 22:48:13 rahnds Exp $ */ +/* $OpenBSD: trap.c,v 1.21 2000/11/10 18:15:42 art Exp $ */ /* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */ /* @@ -271,7 +271,7 @@ printf("isi iar %x\n", frame->srr0); #ifdef KTRACE /* Can't get all the arguments! */ if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, + ktrsyscall(p, code, argsize, args); #endif goto syscall_bad; @@ -280,7 +280,7 @@ printf("isi iar %x\n", frame->srr0); } #ifdef KTRACE if (KTRPOINT(p, KTR_SYSCALL)) - ktrsyscall(p->p_tracep, code, argsize, params); + ktrsyscall(p, code, argsize, params); #endif rval[0] = 0; rval[1] = frame->fixreg[FIRSTARG + 1]; @@ -320,7 +320,7 @@ syscall_bad: #endif #ifdef KTRACE if (KTRPOINT(p, KTR_SYSRET)) - ktrsysret(p->p_tracep, code, error, rval[0]); + ktrsysret(p, code, error, rval[0]); #endif } break; @@ -484,7 +484,7 @@ child_return(p) tf->srr1 &= ~PSL_FP; /* Disable FPU, as we can't be fpuproc */ #ifdef KTRACE if (KTRPOINT(p, KTR_SYSRET)) - ktrsysret(p->p_tracep, SYS_fork, 0, 0); + ktrsysret(p, SYS_fork, 0, 0); #endif /* Profiling? XXX */ curpriority = p->p_priority; |