Update proc->p_ptevents annotation to reflect the actual locking.
Submitted by: Yanko Yankulov <yanko.yankulov@gmail.com> Reviewed by: jhb MFC after: 1 week Differential revision: https://reviews.freebsd.org/D15954
This commit is contained in:
parent
581a046a8b
commit
ac4bc0c171
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335503
@ -688,6 +688,7 @@ void
|
||||
proc_set_traced(struct proc *p, bool stop)
|
||||
{
|
||||
|
||||
sx_assert(&proctree_lock, SX_XLOCKED);
|
||||
PROC_LOCK_ASSERT(p, MA_OWNED);
|
||||
p->p_flag |= P_TRACED;
|
||||
if (stop)
|
||||
|
@ -633,7 +633,7 @@ struct proc {
|
||||
u_int p_stype; /* (c) Stop event type. */
|
||||
char p_step; /* (c) Process is stopped. */
|
||||
u_char p_pfsflags; /* (c) Procfs flags. */
|
||||
u_int p_ptevents; /* (c) ptrace() event mask. */
|
||||
u_int p_ptevents; /* (c + e) ptrace() event mask. */
|
||||
struct nlminfo *p_nlminfo; /* (?) Only used by/for lockd. */
|
||||
struct kaioinfo *p_aioinfo; /* (y) ASYNC I/O info. */
|
||||
struct thread *p_singlethread;/* (c + j) If single threading this is it */
|
||||
|
Loading…
Reference in New Issue
Block a user