Date: Tue, 29 Sep 2020 11:18:48 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r366250 - head/sys/kern Message-ID: <202009291118.08TBImn8023895@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Tue Sep 29 11:18:48 2020 New Revision: 366250 URL: https://svnweb.freebsd.org/changeset/base/366250 Log: Use the 'traced' variable instead of comparing p->p_flag again. Reviewed by: kib Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26577 Modified: head/sys/kern/subr_syscall.c Modified: head/sys/kern/subr_syscall.c ============================================================================== --- head/sys/kern/subr_syscall.c Tue Sep 29 10:07:46 2020 (r366249) +++ head/sys/kern/subr_syscall.c Tue Sep 29 11:18:48 2020 (r366250) @@ -90,7 +90,7 @@ syscallenter(struct thread *td) goto retval; } - if (__predict_false((p->p_flag & P_TRACED) != 0)) { + if (__predict_false(traced)) { PROC_LOCK(p); if (p->p_ptevents & PTRACE_SCE) ptracestop((td), SIGTRAP, NULL);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009291118.08TBImn8023895>