1FUNCTION::USER_STRIN(3staSpt)ring and data retrieving fFuUnNCTION::USER_STRIN(3stap)
2
3
4

NAME

6       function::user_string_n2_quoted - Retrieves and quotes string from user
7       space
8

SYNOPSIS

10           user_string_n2_quoted:string(addr:long,inlen:long,outlen:long)
11

ARGUMENTS

13       addr
14           the user space address to retrieve the string from
15
16       inlen
17           the maximum length of the string to read (if not null terminated)
18
19       outlen
20           the maximum length of the output string
21

DESCRIPTION

23       Reads up to inlen characters of a C string from the given user space
24       memory address, and returns up to outlen characters, where any ASCII
25       characters that are not printable are replaced by the corresponding
26       escape sequence in the returned string. Note that the string will be
27       surrounded by double quotes. On the rare cases when userspace data is
28       not accessible at the given address, the address itself is returned as
29       a string, without double quotes.
30

SEE ALSO

32       tapset::uconversions(3stap)
33
34
35
36SystemTap Tapset Reference         June 2018       FUNCTION::USER_STRIN(3stap)
Impressum