Remove "etc."
[lttng-docs.git] / contents / using-lttng / instrumenting / c-application / intro.md
CommitLineData
5e0cbfb0
PP
1---
2id: c-application
3---
4
5Instrumenting a C (or C++) application, be it an executable program or
6a library, implies using LTTng-UST, the
7user space tracing component of LTTng. For C/C++ applications, the
8LTTng-UST package includes a dynamically loaded library
9(`liblttng-ust`), C headers and the `lttng-gen-tp` command line utility.
10
11Since C and C++ are the base languages of virtually all other
12programming languages
ba3b1994
PP
13(Java virtual machine, Python, Perl, PHP and Node.js interpreters, to
14name a few), implementing user space tracing for an unsupported language
15is just a matter of using the LTTng-UST C API at the right places.
5e0cbfb0
PP
16
17The usual work flow to instrument a user space C application with
18LTTng-UST is:
19
20 1. Define tracepoints (actual probes)
21 2. Write tracepoint providers
22 3. Insert tracepoints into target source code
23 4. Package (build) tracepoint providers
24 5. Build user application and link it with tracepoint providers
25
26The steps above are discussed in greater detail in the following
27subsections.
This page took 0.02416 seconds and 4 git commands to generate.