DOKK / manpages / debian 11 / systemtap-doc / function::kernel_string_n.3stap.en
FUNCTION::KERNEL_STR(3stap) String and data retrieving fun FUNCTION::KERNEL_STR(3stap)

function::kernel_string_n - Retrieves string of given length from kernel memory


kernel_string_n:string(addr:long,n:long)

addr

The kernel address to retrieve the string from

n

The maximum length of the string (if not null terminated)

Returns the C string of a maximum given length from a given kernel memory address. Reports an error on string copy fault.

tapset::conversions(3stap)

November 2020 SystemTap Tapset Reference