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

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


returnstr:string(format:long)

format

Variable to determine return type base value

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

Note that this function should only be used in dwarfless probes (i.e. 'kprobe.function(“foo”)'). Other probes should use return_str.

tapset::errno(3stap)

November 2022 SystemTap Tapset Reference