Merge remote-tracking branch 'gh-tuxology/patch-1'
[lttng-docs.git] / contents / using-lttng / instrumenting / c-application / building-linking / using-lttng-ust-with-daemons.md
CommitLineData
5e0cbfb0
PP
1---
2id: using-lttng-ust-with-daemons
3---
4
5Some extra care is needed when using `liblttng-ust` with daemon
6applications that call `fork()`, `clone()` or BSD's `rfork()` without
7a following `exec()` family system call. The `liblttng-ust-fork`
8library must be preloaded for the application.
9
10Example:
11
12<pre class="term">
13<strong>LD_PRELOAD=liblttng-ust-fork.so</strong> ./app
14</pre>
15
16Or, if you're using a tracepoint provider shared library:
17
18<pre class="term">
19<strong>LD_PRELOAD="liblttng-ust-fork.so /path/to/tp.so"</strong> ./app
20</pre>
This page took 0.023235 seconds and 4 git commands to generate.