summaryrefslogtreecommitdiffstats
path: root/lib/libvmmapi
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-12-18 01:41:52 +0000
committermarkj <markj@FreeBSD.org>2013-12-18 01:41:52 +0000
commitfa6de9117d010d474939e5689c1d076d4918025b (patch)
tree6e1d82eccf41beda77ba33807668e571167cca32 /lib/libvmmapi
parent2d61a75a7fed2c8b1a1480a43d3db460939839e1 (diff)
downloadFreeBSD-src-fa6de9117d010d474939e5689c1d076d4918025b.zip
FreeBSD-src-fa6de9117d010d474939e5689c1d076d4918025b.tar.gz
The fasttrap fork handler is responsible for removing tracepoints in the
child process that were inherited from its parent. However, this should not be done in the case of a vfork, since the fork handler ends up removing the tracepoints from the shared vm space, and userland DTrace probes in the parent will no longer fire as a result. Now the child of a vfork may trigger userland DTrace probes enabled in its parent, so modify the fasttrap probe handler to handle this case and handle the child process in the same way that it would handle the traced process. In particular, if once traces function foo() in a process that vforks, and the child calls foo(), fasttrap will treat this call as having come from the parent. This is the behaviour of the upstream code. While here, add #ifdef guards to some code that isn't present upstream. MFC after: 1 month
Diffstat (limited to 'lib/libvmmapi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud