1FUNCTION::ASSERT(3stap) Logging Tapset FUNCTION::ASSERT(3stap)
23
4
NAME
6function::assert - evaluate assertion
7
SYNOPSIS
9assert(expression:,msg:)
10
ARGUMENTS
12expression
13The expression to evaluate
1415
msg
16The formatted message string
17
DESCRIPTION
19This function checks the expression and aborts the current running
20probe if expression evaluates to zero. Uses error and may be caught by
21try{} catch{}.
22
SEE ALSO
24tapset::logging(3stap)
2526
27
28
SystemTap Tapset Reference June 2018 FUNCTION::ASSERT(3stap)