]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: Ensure that USDT probes are carried over correctly across fork().
authorKris Van Hees <kris.van.hees@oracle.com>
Thu, 29 Aug 2013 22:07:21 +0000 (18:07 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:29:14 +0000 (15:29 +0100)
commit24311aaa7c4f13750446b2adc7d167259922091e
tree73cfeed087aca7e5d05137a246c39007e74b32f3
parent8771a2bb36e81dcbd41c1ba5516bec4b1c560e4b
dtrace: Ensure that USDT probes are carried over correctly across fork().

When a process forks, its child will have a copy of the address space of the
parent, and therefore any enabled USDT probes from the parent will also fire
for the child.  In order for those probe firings to be valid, the child must
have its own pid-specific providers (created by duplicating the parent's
providers).

This commit also adds some additional cleanup.

Orabug: 17346878

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
include/linux/dtrace_os.h
kernel/dtrace/dtrace_os.c
kernel/fork.c