include: implement REUSE with SPDX identifiers
[lttng-ust.git] / doc / examples / demo-tracelog / README
CommitLineData
eb8246a0
MD
1This is a demo application showing how to trace logging statements into
2LTTng-UST.
3
4The simplest commands to trace the demo program are:
5
6lttng create
7lttng enable-event -u "lttng_ust_tracelog:*"
8lttng start
9./demo-tracelog
10lttng stop
11lttng view
12lttng destroy
13
14The resulting lttng view output should look like this:
15
c4d667ed
MD
16[15:54:19.454863179] (+?.?????????) thinkos lttng_ust_tracelog:TRACE_ERR: { cpu_id = 0 }, { line = 45, file = "demo-tracelog.c", func = "main", _msg_length = 17, msg = "Error condition 0" }
17[15:54:19.454871660] (+0.000008481) thinkos lttng_ust_tracelog:TRACE_ERR: { cpu_id = 0 }, { line = 45, file = "demo-tracelog.c", func = "main", _msg_length = 17, msg = "Error condition 1" }
18[15:54:19.454872838] (+0.000001178) thinkos lttng_ust_tracelog:TRACE_ERR: { cpu_id = 0 }, { line = 45, file = "demo-tracelog.c", func = "main", _msg_length = 17, msg = "Error condition 2" }
19[15:54:19.454873541] (+0.000000703) thinkos lttng_ust_tracelog:TRACE_ERR: { cpu_id = 0 }, { line = 45, file = "demo-tracelog.c", func = "main", _msg_length = 17, msg = "Error condition 3" }
20[15:54:19.454874283] (+0.000000742) thinkos lttng_ust_tracelog:TRACE_ERR: { cpu_id = 0 }, { line = 45, file = "demo-tracelog.c", func = "main", _msg_length = 17, msg = "Error condition 4" }
This page took 0.034856 seconds and 4 git commands to generate.