Red Hat ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE Reference Manual page 4

Systemtap language reference
Hide thumbs Also See for ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE:
Table of Contents

Advertisement

5.2.2. Integers ........................................................................................................... 23
5.2.3. Strings ............................................................................................................ 23
5.2.4. Associative arrays ............................................................................................ 23
5.2.5. Statistics ......................................................................................................... 23
5.3. Semicolons ................................................................................................................ 23
5.4. Comments ................................................................................................................. 23
5.5. Whitespace ................................................................................................................ 24
5.6. Expressions ............................................................................................................... 24
5.6.1. Binary numeric operators ................................................................................. 24
5.6.2. Binary string operators ..................................................................................... 24
5.6.3. Numeric assignment operators ......................................................................... 24
5.6.4. String assignment operators ............................................................................. 24
5.6.5. Unary numeric operators .................................................................................. 24
5.6.6. Binary numeric or string comparison operators .................................................. 24
5.6.7. Ternary operator .............................................................................................. 24
5.6.8. Grouping operator ............................................................................................ 24
5.6.9. Function call .................................................................................................... 25
5.6.12. [ <value>, ... ] in <array_name> ...................................................................... 25
5.7. Literals passed in from the stap command line ............................................................. 25
5.7.1. $1 ... $<NN> for integers ................................................................................. 25
5.7.2. @1 ... @<NN> for strings ................................................................................ 25
5.7.3. Examples ........................................................................................................ 25
5.8. Conditional compilation ............................................................................................... 26
5.8.1. Conditions ....................................................................................................... 26
5.8.3. Conditions based on architecture: arch ............................................................. 26
5.8.4. True and False Tokens .................................................................................... 26
6.1. break and continue ..................................................................................................... 29
6.2. delete ........................................................................................................................ 29
6.3. do .............................................................................................................................. 29
6.4. EXP (expression) ....................................................................................................... 29
6.5. for ............................................................................................................................. 29
6.6. foreach ...................................................................................................................... 30
6.7. if ................................................................................................................................ 30
6.8. next ........................................................................................................................... 30
6.9. ; (null statement) ........................................................................................................ 30
6.10. return ....................................................................................................................... 31
6.11. { } (statement block) .................................................................................................. 31
6.12. while ........................................................................................................................ 31
7.1. Examples ................................................................................................................... 33
7.2. Types of values .......................................................................................................... 33
7.3. Array capacity ............................................................................................................ 33
7.4. Iteration, foreach ........................................................................................................ 34
8.1. The aggregation (<<<) operator .................................................................................. 35
8.2. Extraction functions .................................................................................................... 35
iv
29
33
35

Advertisement

Table of Contents
loading

Table of Contents