]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 292894,292896: Add ptrace(2) reporting for LWP events.
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 12 Aug 2016 19:43:06 +0000 (19:43 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 12 Aug 2016 19:43:06 +0000 (19:43 +0000)
commit3faa8014201b38bfbf99f2aa7b41264fa1d96208
tree2b023915269e488d18e1d560fe148306d6176aa9
parentc02f7045f1bf9f5e168a1439993e563327cfd0c7
MFC 292894,292896: Add ptrace(2) reporting for LWP events.

292894:
Add ptrace(2) reporting for LWP events.

Add two new LWPINFO flags: PL_FLAG_BORN and PL_FLAG_EXITED for reporting
thread creation and destruction. Newly created threads will stop to report
PL_FLAG_BORN before returning to userland and exiting threads will stop to
report PL_FLAG_EXIT before exiting completely. Both of these events are
only enabled and reported if PT_LWP_EVENTS is enabled on a process.

292896:
Document the recently added support for ptrace(2) LWP events.

git-svn-id: svn://svn.freebsd.org/base/stable/10@304017 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/ptrace.2
sys/kern/kern_fork.c
sys/kern/kern_sig.c
sys/kern/kern_thr.c
sys/kern/sys_process.c
sys/sys/proc.h
sys/sys/ptrace.h
tests/sys/kern/ptrace_test.c