From: Michael Jeanson Date: Fri, 2 Mar 2018 22:36:26 +0000 (-0500) Subject: Fix: cache the result of getpid() internally X-Git-Tag: v2.9.3~6 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=057851068962ceba59f2ebb26c4a9d8c98b06cc2;hp=057851068962ceba59f2ebb26c4a9d8c98b06cc2;p=lttng-ust.git Fix: cache the result of getpid() internally On Linux we called getpid() directly on each tracepoint and relied on the glibc pid cache. However, in glibc 2.25, released on 2017-02-05, the pid cache was removed which results in a getpid syscall on each event when the vpid context is enabled. Remove the Linux specific case and use our internal cache all the time. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---