From e436e84d48332d559fe60c1a5eba81f03e9f38f9 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 27 Apr 2021 11:12:20 -0400 Subject: [PATCH] doc: add -llttng-ust-common to linking cmd in manpages Change-Id: I82de93db32dd35b044810801ceab9dd2816d7fbd Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- doc/man/lttng-ust.3.txt | 8 ++++---- doc/man/tracef.3.txt | 4 ++-- doc/man/tracelog.3.txt | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) 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()` -- 2.34.1