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

NAME

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

SYNOPSIS

10           user_string_n_quoted:string(addr:long,n:long)
11

ARGUMENTS

13       addr
14           the user space address to retrieve the string from
15
16       n
17           the maximum length of the string (if not null terminated)
18

DESCRIPTION

20       Returns up to n characters of a C string from the given user space
21       memory address where any ASCII characters that are not printable are
22       replaced by the corresponding escape sequence in the returned string.
23       Note that the string will be surrounded by double quotes. On the rare
24       cases when userspace data is not accessible at the given address, the
25       address itself is returned as a string, without double quotes.
26

SEE ALSO

28       tapset::uconversions(3stap)
29
30
31
32SystemTap Tapset Reference         June 2018       FUNCTION::USER_STRIN(3stap)
Impressum