Fix: get tid not pid in vtid context
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 3 Jun 2019 18:21:10 +0000 (14:21 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 3 Jun 2019 18:51:18 +0000 (14:51 -0400)
Looks like an over enthusiastic copy/paste error in
commit 98357ffd0125c23387d42d4b706c56077392326d.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-context-vtid.c

index 5cefe9538486a38ffba957fe06b8601b907ff744..80661f632d8c0305ad059706e8d6528668420a0c 100644 (file)
@@ -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;
This page took 0.025244 seconds and 4 git commands to generate.