diff options
author | Petr Machata <pmachata@redhat.com> | 2012-10-25 14:38:26 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-10-25 14:38:26 +0200 |
commit | 7b9d2506078b63efd7b9ea8f81333501f06fc081 (patch) | |
tree | 1a50c298d325b6b8b8bda30eb1eb4149853adeab /ltrace.conf.5 | |
parent | 4224b617d8d953365cef4b91e477ebf89f02827b (diff) | |
download | ltrace-7b9d2506078b63efd7b9ea8f81333501f06fc081.tar.gz |
Describe expressions in ltrace.conf.5
Diffstat (limited to 'ltrace.conf.5')
-rw-r--r-- | ltrace.conf.5 | 31 |
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 |