FUNCTION::KERNEL_STRING_UTF16(3stap)
π NAME π
function::kernel_string_utf16 β bestie, this one goes into kernel memory and pulls out a UTF-16 string for you. It's living in the String and data retrieving funβ¦ corner of the SystemTap tapset reference, and honestly? It's giving translator energy. π¦
β¨ SYNOPSIS β¨
1) kernel_string_utf16:string(addr:long)
2) kernel_string_utf16:string(addr:long,err_msg:string)
Two whole flavors, pick your fighter. π
π ARGUMENTS π
addrβ the kernel address you wanna yank the string out of. That's the spot. πerr_msgβ the error message that gets returned when the data justβ¦ isn't available. Your custom little "oop" text. π
πΈ DESCRIPTION πΈ
1) the one-arg version
So this function returns a null terminated UTF-8 string that's been converted from the UTF-16 string sitting at a given kernel memory address. Literally a whole glow-up from UTF-16 to UTF-8, no cap. β¨
Heads up though: if the string copy faults, or the conversion goes sideways, it reports an error. Not the vibe, but that's the deal. π
2) the two-arg version
Same situation, same conversion β it returns a null terminated UTF-8 string converted from the UTF-16 string at a given kernel memory address. π«Ά
The difference? Instead of its own default complaint, it reports the error message you gave it when there's a string copy fault or a conversion error. Your words, your moment. π
π SEE ALSO π
tapset::conversions(3stap)β go read this one too, it's iconic, iykyk. π
okay that's the whole page bestie, mwah π This was pulled from the SystemTap Tapset Reference, and it's dated September 2026 β so yeah, mark your calendar, slay, periodt. πβ¨
π¦ 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