DOKK / manpages / debian 12 / systemtap-doc / function::set_user_string_n.3stap.en
FUNCTION::SET_USER_S(3stap) String and data writing functi FUNCTION::SET_USER_S(3stap)

function::set_user_string_n - Writes a string of given length to user memory


set_user_string_n(addr:long,n:long,val:string)

addr

The user address to write the string to

n

The maximum length of the string

val

The string which is to be written

Writes the given string up to a maximum given length to a given user memory address. Reports an error on string copy fault. Requires the use of guru mode (-g).

tapset::uconversions-guru(3stap)

November 2022 SystemTap Tapset Reference