aboutsummaryrefslogtreecommitdiff
path: root/ltrace.conf.5
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-10-25 14:38:26 +0200
committerPetr Machata <pmachata@redhat.com>2012-10-25 14:38:26 +0200
commit7b9d2506078b63efd7b9ea8f81333501f06fc081 (patch)
tree1a50c298d325b6b8b8bda30eb1eb4149853adeab /ltrace.conf.5
parent4224b617d8d953365cef4b91e477ebf89f02827b (diff)
downloadltrace-7b9d2506078b63efd7b9ea8f81333501f06fc081.tar.gz
Describe expressions in ltrace.conf.5
Diffstat (limited to 'ltrace.conf.5')
-rw-r--r--ltrace.conf.531
1 files changed, 30 insertions, 1 deletions
diff --git a/ltrace.conf.5 b/ltrace.conf.5
index ab7d195..e4232d4 100644
--- a/ltrace.conf.5
+++ b/ltrace.conf.5
@@ -177,7 +177,36 @@ type.
.SH EXPRESSIONS
-XXX TODO
+Ltrace has support for some elementary expressions. Each expression
+can be either of the following:
+
+.TP
+.I NUM
+An integer number.
+
+.TP
+.B arg\fINUM
+Value of \fINUM\fR-th argument. The expression has the same value as
+the corresponding argument. \fBarg1\fR refers to the first argument,
+\fBarg0\fR to the return value of the given function.
+
+.TP
+.B emt\fINUM
+Value of \fINUM\fR-th element of the surrounding structure type. E.g.
+\fBstruct(ulong,array(int,elt1))\fR describes a structure whose first
+element is a length, and second element an array of ints of that
+length.
+
+.PP
+.B zero
+.br
+.B zero(\fIEXPR\fB)
+.RS
+Describes array which extends until the first element, whose each byte
+is 0. If and expression is given, that is the maximum length of that
+array. If NUL terminator is not found earlier, that's where the array
+ends.
+.RE
.SH PARAMETER PACKS