Fix: cache the result of getpid() internally
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 2 Mar 2018 22:36:26 +0000 (17:36 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Mar 2018 15:43:16 +0000 (10:43 -0500)
commit057851068962ceba59f2ebb26c4a9d8c98b06cc2
tree101de72823a9b507acfd5918b4120e8caf10af3c
parent77971c85ca9f6d3c8725dc8bdb46b1a4f4671465
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 <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-context-vpid.c
This page took 0.025137 seconds and 4 git commands to generate.