DOKK / manpages / debian 12 / systemtap-doc / function::return_str.3stap.en
FUNCTION::RETURN_STR(3stap) Errno Tapset FUNCTION::RETURN_STR(3stap)

function::return_str - Formats the return value as a string


return_str:string(format:long,ret:long)

format

Variable to determine return type base value

ret

Return value (typically $return)

This function is used by the syscall tapset, and returns a string. Set format equal to 1 for a decimal, 2 for hex, 3 for octal.

Note that this function is preferred over returnstr.

tapset::errno(3stap)

November 2022 SystemTap Tapset Reference