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.10.1
[lttng-ust.git]
/
doc
/
man
/
tracelog.3.txt
diff --git
a/doc/man/tracelog.3.txt
b/doc/man/tracelog.3.txt
index e90e91895b7614d95b5f4f93630384d470ca79a1..1281ce7c8d940d5ec35d26055e3ed13d8c2fc3af 100644
(file)
--- a/
doc/man/tracelog.3.txt
+++ b/
doc/man/tracelog.3.txt
@@
-51,16
+51,16
@@
The `tracelog()` events contain the following fields:
|Field name |Description
|`line`
|Field name |Description
|`line`
-|Line in source file where `tracelog()` was called
+|Line in source file where `tracelog()` was called
.
|`file`
|`file`
-|Source file from which `tracelog()` was called
+|Source file from which `tracelog()` was called
.
|`func`
|`func`
-|Function name from which `tracelog()` was called
+|Function name from which `tracelog()` was called
.
|`msg`
|`msg`
-|Formatted string output
+|Formatted string output
.
|===
If you do not need to attach a specific log level to a `tracelog()`
|===
If you do not need to attach a specific log level to a `tracelog()`
@@
-104,43
+104,43
@@
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 all the `tracelog()`
events, and start the created tracing session like this:
[role="term"]
You can create an LTTng tracing session, enable all the `tracelog()`
events, and start the created tracing session like this:
[role="term"]
-----
-----------------------------------------------
-lttng create my-session
-lttng enable-event --userspace 'lttng_ust_tracelog:*'
-lttng start
-----
-----------------------------------------------
+----
+
$
lttng create my-session
+
$
lttng enable-event --userspace 'lttng_ust_tracelog:*'
+
$
lttng start
+----
Or you can enable `tracelog()` events matching a log level at least
as severe as a given log level:
[role="term"]
Or you can enable `tracelog()` events matching a log level at least
as severe as a given log level:
[role="term"]
-----
---------------------------------------------------
-lttng enable-event --userspace 'lttng_ust_tracelog:*' \
+----
+
$
lttng enable-event --userspace 'lttng_ust_tracelog:*' \
--loglevel=TRACE_INFO
--loglevel=TRACE_INFO
-----
---------------------------------------------------
+----
Next, start the program to be traced:
[role="term"]
Next, start the program to be traced:
[role="term"]
-----
--------------------------------------------
-./app a few arguments passed to this application
-----
--------------------------------------------
+----
+
$
./app a few arguments passed to this application
+----
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.024042 seconds
and
4
git commands to generate.