From: Michael Jeanson Date: Tue, 27 Apr 2021 15:12:20 +0000 (-0400) Subject: doc: add -llttng-ust-common to linking cmd in manpages X-Git-Tag: v2.13.0-rc3~7 X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=10f8fcb0292231eed53b2addd37e8f0c6e963077 doc: add -llttng-ust-common to linking cmd in manpages Change-Id: I82de93db32dd35b044810801ceab9dd2816d7fbd Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/doc/man/lttng-ust.3.txt b/doc/man/lttng-ust.3.txt index ab3c4775..aa157019 100644 --- a/doc/man/lttng-ust.3.txt +++ b/doc/man/lttng-ust.3.txt @@ -65,7 +65,7 @@ SYNOPSIS #define *tracepoint*('prov_name', 't_name', ...) #define *tracepoint_enabled*('prov_name', 't_name') -Link with `-llttng-ust -ldl`, following this man page. +Link with `-llttng-ust -llttng-ust-common -ldl`, following this man page. DESCRIPTION @@ -636,7 +636,7 @@ library containing it) and with `liblttng-ust` and `libdl` [role="term"] ---- -$ cc -o app tp.o app.o -llttng-ust -ldl +$ cc -o app tp.o app.o -llttng-ust -llttng-ust-common -ldl ---- @@ -686,7 +686,7 @@ It is then linked as a shared library like this: [role="term"] ---- -$ cc -shared -Wl,--no-as-needed -o tp.so tp.o -llttng-ust +$ cc -shared -Wl,--no-as-needed -o tp.so tp.o -llttng-ust -llttng-ust-common ---- This tracepoint provider shared object isn't linked with the user @@ -1120,7 +1120,7 @@ like this: ---- $ cc -c -I. tp.c $ cc -c app.c -$ cc -o app tp.o app.o -llttng-ust -ldl +$ cc -o app tp.o app.o -llttng-ust -llttng-ust-common -ldl ---- Using the man:lttng(1) tool, create an LTTng tracing session, enable diff --git a/doc/man/tracef.3.txt b/doc/man/tracef.3.txt index cdd23aec..21456add 100644 --- a/doc/man/tracef.3.txt +++ b/doc/man/tracef.3.txt @@ -17,7 +17,7 @@ SYNOPSIS #define *tracef*('fmt', ...) #define *vtracef*('fmt', 'ap') -Link with `-llttng-ust`. +Link with `-llttng-ust -llttng-ust-common`. DESCRIPTION @@ -80,7 +80,7 @@ like this: [role="term"] ---- -$ cc -o app app.c -llttng-ust +$ cc -o app app.c -llttng-ust -llttng-ust-common ---- You can create an LTTng tracing session, enable the `tracef()` events, diff --git a/doc/man/tracelog.3.txt b/doc/man/tracelog.3.txt index 544d027a..1f97a0bd 100644 --- a/doc/man/tracelog.3.txt +++ b/doc/man/tracelog.3.txt @@ -17,7 +17,7 @@ SYNOPSIS #define *tracelog*('level', 'fmt', ...) #define *vtracelog*('level', 'fmt', 'ap') -Link with `-llttng-ust`. +Link with `-llttng-ust -llttng-ust-common`. DESCRIPTION @@ -115,7 +115,7 @@ like this: [role="term"] ---- -$ cc -o app app.c -llttng-ust +$ cc -o app app.c -llttng-ust -llttng-ust-common ---- You can create an LTTng tracing session, enable all the `tracelog()`