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/kern/uipc_syscalls.c | |
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/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 613f1e969d0..786b1ed0bb5 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.32 2000/10/12 09:58:05 itojun Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.33 2000/11/10 18:15:48 art Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -504,8 +504,7 @@ sendit(p, s, mp, flags, retsize) #ifdef KTRACE if (ktriov != NULL) { if (error == 0) - ktrgenio(p->p_tracep, s, UIO_WRITE, - ktriov, *retsize, error); + ktrgenio(p, s, UIO_WRITE, ktriov, *retsize, error); free(ktriov, M_TEMP); } #endif @@ -655,7 +654,7 @@ recvit(p, s, mp, namelenp, retsize) #ifdef KTRACE if (ktriov != NULL) { if (error == 0) - ktrgenio(p->p_tracep, s, UIO_READ, + ktrgenio(p, s, UIO_READ, ktriov, len - auio.uio_resid, error); free(ktriov, M_TEMP); } |