diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2000-12-13 00:17:05 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2000-12-13 00:17:05 +0000 |
| commit | c0c255709081ed31ff044179c49ca7e8c6abb162 (patch) | |
| tree | 4dfd199ffaa97feec65c14b175f47ccddbeed914 /sys/kern/kern_ktrace.c | |
| parent | 1b3335af6a91bd501eacc94ea03d0f3221559b9b (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_ktrace.c')
| -rw-r--r-- | sys/kern/kern_ktrace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_ktrace.c b/sys/kern/kern_ktrace.c index 2d3b08d1feb8..59321fe2423d 100644 --- a/sys/kern/kern_ktrace.c +++ b/sys/kern/kern_ktrace.c @@ -278,7 +278,7 @@ ktrace(curp, uap) * Clear all uses of the tracefile */ if (ops == KTROP_CLEARFILE) { - lockmgr(&allproc_lock, LK_SHARED, NULL, CURPROC); + ALLPROC_LOCK(AP_SHARED); LIST_FOREACH(p, &allproc, p_list) { if (p->p_tracep == vp) { if (ktrcanset(curp, p)) { @@ -290,7 +290,7 @@ ktrace(curp, uap) error = EPERM; } } - lockmgr(&allproc_lock, LK_RELEASE, NULL, CURPROC); + ALLPROC_LOCK(AP_RELEASE); goto done; } /* @@ -496,7 +496,7 @@ ktrwrite(vp, kth, uio) */ log(LOG_NOTICE, "ktrace write failed, errno %d, tracing stopped\n", error); - lockmgr(&allproc_lock, LK_SHARED, NULL, CURPROC); + ALLPROC_LOCK(AP_SHARED); LIST_FOREACH(p, &allproc, p_list) { if (p->p_tracep == vp) { p->p_tracep = NULL; @@ -504,7 +504,7 @@ ktrwrite(vp, kth, uio) vrele(vp); } } - lockmgr(&allproc_lock, LK_RELEASE, NULL, CURPROC); + ALLPROC_LOCK(AP_RELEASE); } /* |
