summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-03-13 18:24:22 +0000
committerjhb <jhb@FreeBSD.org>2003-03-13 18:24:22 +0000
commitf02ef380800bd38dbe71222060eb0b63fe324040 (patch)
treef091cf306f923dc1ced5e37882d80b885d47cc2b /sys/kern/kern_proc.c
parent15b2d31e358554d642da71cfc6c4967e3bea1414 (diff)
downloadFreeBSD-src-f02ef380800bd38dbe71222060eb0b63fe324040.zip
FreeBSD-src-f02ef380800bd38dbe71222060eb0b63fe324040.tar.gz
- Cache a reference to the credential of the thread that starts a ktrace in
struct proc as p_tracecred alongside the current cache of the vnode in p_tracep. This credential is then used for all later ktrace operations on this file rather than using the credential of the current thread at the time of each ktrace event. - Now that we have multiple ktrace-related items in struct proc that are pointers, rename p_tracep to p_tracevp to make it less ambiguous. Requested by: rwatson (1)
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index 84b3fc1..752fbf0 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -625,7 +625,7 @@ fill_kinfo_proc(p, kp)
kp->ki_args = p->p_args;
kp->ki_textvp = p->p_textvp;
#ifdef KTRACE
- kp->ki_tracep = p->p_tracep;
+ kp->ki_tracep = p->p_tracevp;
mtx_lock(&ktrace_mtx);
kp->ki_traceflag = p->p_traceflag;
mtx_unlock(&ktrace_mtx);
OpenPOWER on IntegriCloud