[lttng-dev] [PATCH lttng-ust 1/2] Fix: reset cached vpid context on fork
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Mon Mar 5 10:43:56 EST 2018
Both patches merged into master, 2.10, 2.9, thanks!
Mathieu
----- On Mar 2, 2018, at 5:36 PM, Michael Jeanson mjeanson at efficios.com wrote:
> We currently reset the cached vtid on fork but not the vpid. This is not
> a problem on Linux because we don't cache the vpid internally but call
> getpid() directly and rely on the glibc pid cache.
>
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> liblttng-ust/lttng-ust-comm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c
> index 4391446..d4add1c 100644
> --- a/liblttng-ust/lttng-ust-comm.c
> +++ b/liblttng-ust/lttng-ust-comm.c
> @@ -2011,6 +2011,7 @@ void ust_after_fork_child(sigset_t *restore_sigset)
> {
> if (URCU_TLS(lttng_ust_nest_count))
> return;
> + lttng_context_vpid_reset();
> lttng_context_vtid_reset();
> DBG("process %d", getpid());
> /* Release urcu mutexes */
> --
> 2.7.4
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list