Fix: namespace our gettid wrapper
Since glibc 2.30, a gettid wrapper was added that conflicts with our
static declaration. Namespace our wrapper so there is no conflict,
we'll add support for the glibc provided wrapper in a further commit.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
(cherry picked from commit
0f029713c868ef3e868d0dc7297455cb737e606f)
Change-Id: I896e5e838e37096edf941ade786bd7a2a8566321
Cleanup vtid/vpid context caches
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
(cherry picked from commit
98357ffd0125c23387d42d4b706c56077392326d)
Change-Id: Ibeb53ecd773cdda701b90f09b465d82e88130e23
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>
(cherry picked from commit
6d9b54d845b08d54d3f483f1130b499516588db3)
Change-Id: Ide9a7f3c99061e3b3d9f68cec86fc117dc684be7