1FUNCTION::ASSERT(3stap)         Logging Tapset         FUNCTION::ASSERT(3stap)
2
3
4

NAME

6       function::assert - evaluate assertion
7

SYNOPSIS

9       1) assert(expression:long)
10
11       2) assert(expression:long,msg:string)
12

ARGUMENTS

14       expression
15           The expression to evaluate
16
17       msg
18           The formatted message string
19

DESCRIPTION

21       1) This function checks the expression and aborts the current running
22       probe if expression evaluates to zero. Useserror and may be caught by
23       try{} catch{}. A default message will be displayed.
24
25       2) This function checks the expression and aborts the current running
26       probe if expression evaluates to zero. Useserror and may be caught by
27       try{} catch{}. The specified message will be displayed.
28

SEE ALSO

30       tapset::logging(3stap)
31
32
33
34SystemTap Tapset Reference         May 2021            FUNCTION::ASSERT(3stap)
Impressum