FUNCTION::KERNEL_STRING(3stap)
π function::kernel_string π
okay so bestie, welcome to the 3stap manual β this is the SystemTap Tapset Reference, and today's main character is a little function called kernel_string. she grabs strings out of kernel memory. that's it. that's the vibe. β¨
πΈ NAME πΈ
function::kernel_string β retrieves a string from kernel memory π§
β¨ SYNOPSIS β¨
1) kernel_string:string(addr:long)
2) kernel_string:string(addr:long,err_msg:string)
like, two whole flavours. pick your fighter. π
π ARGUMENTS π
addrβ the kernel address you're pulling the string from. that's the spot. that's where the tea is. π«err_msgβ the error message it hands back when the data just isn't there. lowkey the emotional support string. π
π DESCRIPTION π
1) this version returns the null terminated C string from a given kernel memory address. if the string copy faults? it reports an error. no cap, it will tell you. π
2) this version returns the null terminated C string from a given kernel memory address too β same energy β but when there's a string copy fault, it reports the error message you gave it instead. custom error message era. iconic. π
heads up bestie: both versions are about string copy faults β that's the failure mode, and both of them report on it. version 2 just lets you pick what gets said. π
π¦ SEE ALSO π¦
tapset::conversions(3stap)β go read this one too, fr fr π«Ά
and that's the whole page, bestie!! SystemTap Tapset Reference, September 2026 β mwah, go copy some kernel strings responsibly πβ¨πΈ
π¦ 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