Build system: implement REUSE with SPDX identifiers
[lttng-ust.git] / src / lib / lttng-ust-libc-wrapper / README.md
diff --git a/src/lib/lttng-ust-libc-wrapper/README.md b/src/lib/lttng-ust-libc-wrapper/README.md
new file mode 100644 (file)
index 0000000..a87e912
--- /dev/null
@@ -0,0 +1,17 @@
+<!--
+SPDX-FileCopyrightText: 2023 EfficiOS, Inc.
+
+SPDX-License-Identifier: CC-BY-4.0
+-->
+
+# LTTng-UST libc wrapper
+
+`liblttng-ust-libc` is used for instrumenting some calls to libc in a program,
+without need for recompiling it.
+
+This library defines a `malloc()` function that is instrumented with a
+tracepoint. It also calls the libc `malloc()` afterwards. When loaded with
+LD\_PRELOAD, it replaces the libc `malloc()` function, in effect instrumenting
+all calls to `malloc()`. The same is performed for `free()`.
+
+See the "run" script for a usage example.
This page took 0.022995 seconds and 4 git commands to generate.