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

NAME

6       function::assert - evaluate assertion
7

SYNOPSIS

9           assert(expression:,msg:)
10

ARGUMENTS

12       expression
13           The expression to evaluate
14
15       msg
16           The formatted message string
17

DESCRIPTION

19       This function checks the expression and aborts the current running
20       probe if expression evaluates to zero. Uses error and may be caught by
21       try{} catch{}.
22

SEE ALSO

24       tapset::logging(3stap)
25
26
27
28SystemTap Tapset Reference         June 2018           FUNCTION::ASSERT(3stap)
Impressum