projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 2.12.5
[lttng-ust.git]
/
doc
/
man
/
tracef.3.txt
diff --git
a/doc/man/tracef.3.txt
b/doc/man/tracef.3.txt
index 7cab981478b0eb19ee83faa0ce448ec4c9cb723c..1068afadfef56b6e7f0256adfe196d885a280246 100644
(file)
--- a/
doc/man/tracef.3.txt
+++ b/
doc/man/tracef.3.txt
@@
-69,34
+69,34
@@
This C source file, saved as `app.c`, can be compiled into a program
like this:
[role="term"]
like this:
[role="term"]
-----
-----------------------
-cc -o app app.c -llttng-ust
-----
-----------------------
+----
+
$
cc -o app app.c -llttng-ust
+----
You can create an LTTng tracing session, enable the `tracef()` events,
and start the created tracing session like this:
[role="term"]
You can create an LTTng tracing session, enable the `tracef()` events,
and start the created tracing session like this:
[role="term"]
-----
-----------------------------------------------
-lttng create my-session
-lttng enable-event --userspace 'lttng_ust_tracef:*'
-lttng start
-----
-----------------------------------------------
+----
+
$
lttng create my-session
+
$
lttng enable-event --userspace 'lttng_ust_tracef:*'
+
$
lttng start
+----
Next, start the program to be traced:
[role="term"]
Next, start the program to be traced:
[role="term"]
-----
-
-./app
-----
-
+----
+
$
./app
+----
Finally, stop the tracing session, and inspect the recorded events:
[role="term"]
Finally, stop the tracing session, and inspect the recorded events:
[role="term"]
-----
------
-lttng stop
-lttng view
-----
------
+----
+
$
lttng stop
+
$
lttng view
+----
[[limitations]]
[[limitations]]
This page took
0.023677 seconds
and
4
git commands to generate.