Blame doc/man/lttng-ust-dl.3.txt

Packit c04fcb
lttng-ust-dl(3)
Packit c04fcb
===============
Packit c04fcb
:object-type: library
Packit c04fcb
Packit c04fcb
Packit c04fcb
NAME
Packit c04fcb
----
Packit c04fcb
lttng-ust-dl - Dynamic linker tracing (LTTng-UST helper)
Packit c04fcb
Packit c04fcb
Packit c04fcb
SYNOPSIS
Packit c04fcb
--------
Packit c04fcb
Launch your application by preloading `liblttng-ust-dl.so`:
Packit c04fcb
Packit c04fcb
[role="term"]
Packit c04fcb
[verse]
Packit c04fcb
*LD_PRELOAD=liblttng-ust-dl.so* my-app
Packit c04fcb
Packit c04fcb
Packit c04fcb
DESCRIPTION
Packit c04fcb
-----------
Packit c04fcb
When the `liblttng-ust-dl.so` library is preloaded before a given
Packit c04fcb
application starts, it causes all calls to man:dlopen(3) and
Packit c04fcb
man:dlclose(3) in said application to be traced with LTTng-UST (see
Packit c04fcb
man:lttng-ust(3)).
Packit c04fcb
Packit c04fcb
See man:lttng(1) to learn more about how to control LTTng tracing
Packit c04fcb
sessions.
Packit c04fcb
Packit c04fcb
The following LTTng-UST events are available when using this library:
Packit c04fcb
Packit c04fcb
`lttng_ust_dl:dlopen`::
Packit c04fcb
    Emitted when man:dlopen(3) is called.
Packit c04fcb
+
Packit c04fcb
Fields:
Packit c04fcb
+
Packit c04fcb
[options="header"]
Packit c04fcb
|==============================================================
Packit c04fcb
| Field name                 | Description
Packit c04fcb
| `baddr`                    | Base address of loaded library
Packit c04fcb
| `memsz`                    | Size of loaded library in memory
Packit c04fcb
| `path`                     | Path to loaded library file
Packit c04fcb
|==============================================================
Packit c04fcb
Packit c04fcb
`lttng_ust_dl:dlclose`::
Packit c04fcb
    Emitted when man:dlclose(3) is called.
Packit c04fcb
+
Packit c04fcb
Fields:
Packit c04fcb
+
Packit c04fcb
[options="header"]
Packit c04fcb
|==============================================================
Packit c04fcb
| Field name                 | Description
Packit c04fcb
| `baddr`                    | Base address of loaded library
Packit c04fcb
|==============================================================
Packit c04fcb
Packit c04fcb
`lttng_ust_dl:debug_link`::
Packit c04fcb
    Emitted when debug link information is found when loading a library
Packit c04fcb
    with man:dlopen(3). See
Packit c04fcb
    https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html[Debugging Information in Separate Files]
Packit c04fcb
    for more information about debug links.
Packit c04fcb
+
Packit c04fcb
Fields:
Packit c04fcb
+
Packit c04fcb
[options="header"]
Packit c04fcb
|==============================================================
Packit c04fcb
| Field name                 | Description
Packit c04fcb
| `baddr`                    | Base address of loaded library
Packit c04fcb
| `filename`                 | Debug link file name
Packit c04fcb
| `crc`                      | Debug link file's CRC
Packit c04fcb
|==============================================================
Packit c04fcb
Packit c04fcb
`lttng_ust_dl:build_id`::
Packit c04fcb
    Emitted when a build ID is found when loading a library
Packit c04fcb
    with man:dlopen(3). See
Packit c04fcb
    https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html[Debugging Information in Separate Files]
Packit c04fcb
    for more information about build IDs.
Packit c04fcb
+
Packit c04fcb
Fields:
Packit c04fcb
+
Packit c04fcb
[options="header"]
Packit c04fcb
|==============================================================
Packit c04fcb
| Field name                 | Description
Packit c04fcb
| `baddr`                    | Base address of loaded library
Packit c04fcb
| `build_id`                 | Build ID
Packit c04fcb
|==============================================================
Packit c04fcb
Packit c04fcb
Packit c04fcb
include::common-footer.txt[]
Packit c04fcb
Packit c04fcb
include::common-copyrights.txt[]
Packit c04fcb
Packit c04fcb
include::common-authors.txt[]
Packit c04fcb
Packit c04fcb
Packit c04fcb
SEE ALSO
Packit c04fcb
--------
Packit c04fcb
man:lttng-ust(3),
Packit c04fcb
man:dlopen(3),
Packit c04fcb
man:lttng(1)