FUNCTION::USER_STRING_QUOTED(3stap)
π FUNCTION::USER_STRING_QUOTED π
okay bestie, so this one lives in the SystemTap Tapset Reference manual, section 3stap β it's a tapset function page, and honestly? it's giving "tiny function, huge main character energy." β¨
πΈ NAME πΈ
function::user_string_quoted β retrieves and quotes a string from user space. no cap, that's the whole job description. π
π¦ SYNOPSIS π¦
user_string_quoted:string(addr:long)
β¨ ARGUMENTS β¨
addrβ the user space address you wanna pull the string from. that's it, that's the whole input. π
π DESCRIPTION π
so here's the tea, bestie π β this function returns the null terminated C string sitting at a given user space memory address, and it does a lil glow-up on the way out:
- any ASCII characters that are not printable get swapped out for the corresponding escape sequence in the string you get back π₯
- and the whole thing gets surrounded by double quotes π like it's being presented on a little velvet pillow
π«Ά rare situation alert: on the rare cases when userspace data is not accessible at the given address, the function just hands you back the address itself as a string, and β plot twist β without double quotes. so if you see a bare address string, that's the vibe check failing, iykyk π
π SEE ALSO π
tapset::uconversions(3stap)β go read this one next, it's iconic π
mwah π that's the whole page. written by the SystemTap Tapset Reference, version dated September 2026 β shoutout to the source, couldn't have done it without you, and yes the original footer is a little mangled by the man-page formatter but we love her anyway ππ
π¦ 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