2 id: liblttng‑ust‑dl
5 This LTTng-UST helper causes all calls to `dlopen()` and `dlclose()`
6 in the target application to be traced with LTTng.
8 The helper's shared object, `liblttng-ust-dl.so`, registers the
9 following tracepoints when preloaded:
11 <table class="func-desc">
14 <th><abbr title="Tracepoint">TP</abbr> provider name</th>
15 <th><abbr title="Tracepoint">TP</abbr> name</th>
16 <th>Description/fields</th>
22 <code class="no-bg">ust_baddr</code>
25 <code class="no-bg">push</code>
28 <p><code>dlopen()</code> call</p>
32 <code class="arg">baddr</code> memory
34 (where the dynamic linker placed the shared
38 <code class="arg">sopath</code> file system
39 path to the loaded shared object
42 <code class="arg">size</code> file size
43 of the the loaded shared object
46 <code class="arg">mtime</code> last
47 modification time (seconds since Epoch time)
48 of the loaded shared object
55 <code class="no-bg">pop</code>
58 <p><code>dlclose()</code> call</p>
62 <code class="arg">baddr</code> memory
71 To use this LTTng-UST helper with any user application, independently of
72 how the latter is built, do:
75 LD_PRELOAD=liblttng-ust-dl.so my-app
78 Of course, like any other tracepoint, the ones above need to be enabled
79 in order for LTTng-UST to generate events. This is done using the
80 `lttng` command line tool
81 (see [Controlling tracing](#doc-controlling-tracing)).