diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-06-07 05:37:18 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-06-07 05:37:18 +0000 |
| commit | 60a9bb197ddeafc3e9458057d7969acafd508819 (patch) | |
| tree | d6f2724dac3173532bc97130435f5c94f5151f01 /sys/kern/sys_generic.c | |
| parent | ea3fc8e4cda27cd52db87e18d8b9a46a197c10d9 (diff) | |
Notes
Diffstat (limited to 'sys/kern/sys_generic.c')
| -rw-r--r-- | sys/kern/sys_generic.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index f3352b91acfe..8a94b0c36b1a 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -184,7 +184,7 @@ dofileread(td, fp, fd, buf, nbyte, offset, flags) /* * if tracing, save a copy of iovec */ - if (KTRPOINT(td->td_proc, KTR_GENIO)) { + if (KTRPOINT(td, KTR_GENIO)) { ktriov = aiov; ktruio = auio; didktr = 1; @@ -202,7 +202,7 @@ dofileread(td, fp, fd, buf, nbyte, offset, flags) if (didktr && error == 0) { ktruio.uio_iov = &ktriov; ktruio.uio_resid = cnt; - ktrgenio(td->td_proc->p_tracep, fd, UIO_READ, &ktruio, error); + ktrgenio(fd, UIO_READ, &ktruio, error); } #endif td->td_retval[0] = cnt; @@ -275,7 +275,7 @@ readv(td, uap) /* * if tracing, save a copy of iovec */ - if (KTRPOINT(td->td_proc, KTR_GENIO)) { + if (KTRPOINT(td, KTR_GENIO)) { MALLOC(ktriov, struct iovec *, iovlen, M_TEMP, M_WAITOK); bcopy((caddr_t)auio.uio_iov, (caddr_t)ktriov, iovlen); ktruio = auio; @@ -293,8 +293,7 @@ readv(td, uap) if (error == 0) { ktruio.uio_iov = ktriov; ktruio.uio_resid = cnt; - ktrgenio(td->td_proc->p_tracep, uap->fd, UIO_READ, &ktruio, - error); + ktrgenio(uap->fd, UIO_READ, &ktruio, error); } FREE(ktriov, M_TEMP); } @@ -408,7 +407,7 @@ dofilewrite(td, fp, fd, buf, nbyte, offset, flags) /* * if tracing, save a copy of iovec and uio */ - if (KTRPOINT(td->td_proc, KTR_GENIO)) { + if (KTRPOINT(td, KTR_GENIO)) { ktriov = aiov; ktruio = auio; didktr = 1; @@ -432,7 +431,7 @@ dofilewrite(td, fp, fd, buf, nbyte, offset, flags) if (didktr && error == 0) { ktruio.uio_iov = &ktriov; ktruio.uio_resid = cnt; - ktrgenio(td->td_proc->p_tracep, fd, UIO_WRITE, &ktruio, error); + ktrgenio(fd, UIO_WRITE, &ktruio, error); } #endif td->td_retval[0] = cnt; @@ -509,7 +508,7 @@ writev(td, uap) /* * if tracing, save a copy of iovec and uio */ - if (KTRPOINT(td->td_proc, KTR_GENIO)) { + if (KTRPOINT(td, KTR_GENIO)) { MALLOC(ktriov, struct iovec *, iovlen, M_TEMP, M_WAITOK); bcopy((caddr_t)auio.uio_iov, (caddr_t)ktriov, iovlen); ktruio = auio; @@ -534,8 +533,7 @@ writev(td, uap) if (error == 0) { ktruio.uio_iov = ktriov; ktruio.uio_resid = cnt; - ktrgenio(td->td_proc->p_tracep, uap->fd, UIO_WRITE, &ktruio, - error); + ktrgenio(uap->fd, UIO_WRITE, &ktruio, error); } FREE(ktriov, M_TEMP); } |
