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

NAME

6       function::printk - Send a message to the kernel trace buffer
7

SYNOPSIS

9           printk(level:long,msg:string)
10

ARGUMENTS

12       level
13           an integer for the severity level (0=KERN_EMERG ... 7=KERN_DEBUG)
14
15       msg
16           The formatted message string
17

DESCRIPTION

19       Print a line of text to the kernel dmesg/console with the given
20       severity. An implicit end-of-line is added. This function may not be
21       safely called from all kernel probe contexts, so is restricted to guru
22       mode only.
23

SEE ALSO

25       tapset::logging(3stap)
26
27
28
29SystemTap Tapset Reference        April 2023           FUNCTION::PRINTK(3stap)
Impressum