FUNCTION::RETURNSTR(3stap)
π FUNCTION::RETURNSTR π
okay bestie, welcome to the Errno Tapset corner of the SystemTap Tapset Reference, section 3stap π this one is tiny but it's a whole vibe, let's get into it
β¨ NAME β¨
function::returnstr β it formats the return value as a string, that's the whole job, that's the whole girl π
πΈ SYNOPSIS πΈ
returnstr:string(format:long)
π¦ ARGUMENTS π¦
formatβ this is the variable that determines the return type base value π you're basically telling it how to read the number, she's not gonna guess, she's not psychic, hand her the format fr fr
β DESCRIPTION β
so here's the tea β this function is used by the nd_syscall tapset, and what does it do? it returns a string. that's it, that's the deliverable π
you set format like this:
- set
formatequal to1for decimal π - set
formatequal to2for hex β¨ - set
formatequal to3for octal π
π¨ ok this is the important part, don't skip it π¨ note that this function should only be used in dwarfless probes (i.e.kprobe.function(βfooβ)). other probes should usereturn_strinstead. literally do not use this one anywhere else, she has a very specific lane and she stays in it π
π SEE ALSO π
tapset::errno(3stap) β go read that one too, iykyk π
ok that's the whole page, no cap, you ate this π«Ά it's all from the SystemTap Tapset Reference, version dated September 2026 β mwah, go forth and format your return values, icon ππ
π¦ 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