From: Michael Jeanson Date: Mon, 3 Jun 2019 18:21:10 +0000 (-0400) Subject: Fix: get tid not pid in vtid context X-Git-Tag: v2.12.0-rc1~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=70b36cd63f75c305d948bbce2177d834df5d8323;p=lttng-ust.git Fix: get tid not pid in vtid context Looks like an over enthusiastic copy/paste error in commit 98357ffd0125c23387d42d4b706c56077392326d. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-context-vtid.c b/liblttng-ust/lttng-context-vtid.c index 5cefe953..80661f63 100644 --- a/liblttng-ust/lttng-context-vtid.c +++ b/liblttng-ust/lttng-context-vtid.c @@ -63,7 +63,7 @@ pid_t wrapper_getvtid(void) vtid = CMM_LOAD_SHARED(URCU_TLS(cached_vtid)); if (caa_unlikely(!vtid)) { - vtid = getpid(); + vtid = gettid(); CMM_STORE_SHARED(URCU_TLS(cached_vtid), vtid); } return vtid;