Ce contenu n'est pas disponible dans la langue sélectionnée.
5.6. Expressions
SystemTap supports a number of operators that use the same general syntax, semantics, and precedence as in C and awk. Arithmetic is performed per C rules for signed integers. If the parser detects division by zero or an overflow, it generates an error. The following subsections list these operators.
5.6.1. Binary numeric operators Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
* / % + - > > < < & | && ||
5.6.3. Numeric assignment operators Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
= *= /= %= += -= > >= < <= &= = |=
5.6.4. String assignment operators Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
= .=
5.6.6. Binary numeric or string comparison operators Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
< > <= >= == !=
5.6.9. Function call Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
General syntax:
fn ([ arg1, arg2, ... ])
5.6.10. $ptr->member Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
ptr
is a kernel pointer available in a probed context.
5.6.11. in Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
This expression evaluates to true if the array contains an element with the specified index.
5.6.12. [ , … ] in Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
The number of index values must match the number of indexes previously specified.