ustfork: Initialize libc pointers in constructor
authorOlivier Dion <odion@efficios.com>
Tue, 22 Aug 2023 15:28:36 +0000 (11:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 22 Aug 2023 20:31:25 +0000 (16:31 -0400)
commit8b27b287c97d32a301ce70bc7999ec22e7fef795
tree7437db98a1fca624364f1fe6d39a9b519299e1cf
parentbdc54f691b8ec841959bbc6cb2259aaf67861bdb
ustfork: Initialize libc pointers in constructor

Instead of resolving individual libc functions lazily at their call
site, resolve every libc functions in a global constructor. This improve
error reporting for the user, by only emiting a single warning for each
failed symbol lookup.

Change-Id: I47504846e44a68366870b983ff556158e634cf83
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/lttng-ust-fork/ustfork.c
This page took 0.026133 seconds and 4 git commands to generate.