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:
Konstantin Belousov 2018-06-21 21:07:25 +00:00
parent 581a046a8b
commit ac4bc0c171
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335503
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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 */