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

NAME

6       function::error - Send an error message
7

SYNOPSIS

9           error(msg:string)
10

ARGUMENTS

12       msg
13           The formatted message string
14

DESCRIPTION

16       An implicit end-of-line is added. staprun prepends the string “ERROR:”.
17       Sending an error message aborts the currently running probe. Depending
18       on the MAXERRORS parameter, it may trigger an exit.
19

SEE ALSO

21       tapset::logging(3stap)
22
23
24
25SystemTap Tapset Reference        April 2023            FUNCTION::ERROR(3stap)
Impressum