Statement Types; Break And Continue; Delete; Exp (Expression) - Red Hat ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE Reference Manual

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

Advertisement

Chapter 6.

Statement types

Statements enable procedural control flow within functions and probe handlers. The total number of
statements executed in response to any single probe event is limited to MAXACTION, which defaults
Section 1.6, "Safety and
security".
to 1000. See Section

6.1. break and continue

Use break or continue to exit or iterate the innermost nesting loop statement, such as within a
while, for, or foreach statement. The syntax and semantics are the same as those used in C.

6.2. delete

delete removes an element.
The following statement removes from ARRAY the element specified by the index tuple. The value will
no longer be available, and subsequent iterations will not report the element. It is not an error to delete
an element that does not exist.
delete ARRAY[INDEX1, INDEX2, ...]
The following syntax removes all elements from ARRAY:
delete ARRAY
The following statement removes the value of SCALAR. Integers and strings are cleared to zero and
null ("") respectively, while statistics are reset to their initial empty state.
delete SCALAR
6.3. do
The do statement has the same syntax and semantics as in C.
do STMT while (EXP)

6.4. EXP (expression)

An expression executes a string- or integer-valued expression and discards the value.

6.5. for

General syntax:
29

Advertisement

Table of Contents
loading

Table of Contents