Doc: cmake example: fix coding style
[lttng-ust.git] / doc / examples / cmake-multiple-shared-libraries / README.md
CommitLineData
c2da416a
SB
1This examples shows how to use LTTng-UST in a project that uses
2CMake as the build system generator.
3
4Build the libraries and applications
5=====
6
7```bash
8mkdir build
9cd build
10cmake ..
11make
12```
13
143 shared libraries will be generated
15
16```
17libaligner-lib.so
18libtester-lib.so
19libtracepoint-provider.so
20```
21
22
23and 2 executables will be generated
24
25```
26aligner
27tester
28```
29
30
31
32Trace the application tester
33============================
34
35The script trace.sh can be used.
36
37```bash
38lttng create
39lttng enable-event -u 'gydle_om:*'
40lttng start
41./tester
42lttng stop
43lttng view > trace.txt
44cat trace.txt
45```
46
47The content of trace.txt should be:
48
49```
b57809aa
MD
50[21:45:34.940246019] (+?.?????????) osiris gydle_om:align_query: { cpu_id = 2 }, { query_name = "moleculeX" }
51[21:45:34.940263188] (+0.000017169) osiris gydle_om:test_alignment: { cpu_id = 2 }, { alignment = "my-alignment" }
c2da416a 52```
This page took 0.023881 seconds and 4 git commands to generate.