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.3. Numeric assignment operators Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
= *= /= %= += -= > >= < <= &= = |=
5.6.4. String assignment operators Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
= .=
5.6.6. Binary numeric or string comparison operators Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
< > <= >= == !=
5.6.10. $ptr->member Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
ptr
is a kernel pointer available in a probed context.
5.6.11. in Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
This expression evaluates to true if the array contains an element with the specified index.
5.6.12. [ , … ] in Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The number of index values must match the number of indexes previously specified.