]> 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)
committerKris Van Hees <kris.van.hees@oracle.com>
Thu, 5 Sep 2013 20:57:17 +0000 (16:57 -0400)
commit397943fa073c73eb68315b71b1338c4f76db6193
tree10accf0654bc5d285a50733cdc07e5dc6bdc3364
parent20ad2ac52aea8bd986051b162439ab7ca77b089f
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>
dtrace/dtrace_dev.c
dtrace/dtrace_dif.c
dtrace/dtrace_dof.c
dtrace/dtrace_hash.c
dtrace/dtrace_isa.c
dtrace/fasttrap_dev.c
dtrace/include/dtrace/dtrace_impl.h