FUNCTION::PRINTK(3stap)
π FUNCTION::PRINTK π
okay bestie, welcome to the Logging Tapset β yes that's the manual name, it's giving "system logs but make it fashion" β¨
πΈ NAME πΈ
function::printk β send a message to the kernel trace buffer, no cap π¨
β¨ SYNOPSIS β¨
printk(level:long,msg:string)
that's it. that's the whole vibe. π«Ά
π ARGUMENTS π
levelβ an integer for the severity level, and it goes from0=KERN_EMERGall the way up to7=KERN_DEBUG. so like,0is screaming-in-caps emergency energy π± and7is just lowkey chatting π¦msgβ the formatted message string. this is the actual thing you wanna say, bestie π¬
π DESCRIPTION π
so what this does is print a line of text to the kernel dmesg/console with whatever severity you handed it. and the way that it just adds an implicit end-of-line for you? iconic. you don't even have to think about it. π
β οΈ but here's the tea, and it's important tea: this function may not be safely called from all kernel probe contexts. so it's restricted to guru mode only. not regular mode. not "eh, close enough" mode. guru mode. periodt. π
π₯ SEE ALSO π₯
and that's the whole page, bestie β go forth and log responsibly π§π
this was the SystemTap Tapset Reference, Ver, September 2026 edition πΈ mwah, catch you in the next manpage πβ¨π
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms