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

NAME

6       function::kernel_buffer_quoted - Retrieves and quotes buffer from
7       kernel space
8

SYNOPSIS

10       1) kernel_buffer_quoted:string(addr:long,inlen:long)
11
12       2) kernel_buffer_quoted:string(addr:long,inlen:long,outlen:long)
13

ARGUMENTS

15       addr
16           the kernel space address to retrieve the buffer from
17
18       inlen
19           the exact length of the buffer to read
20
21       outlen
22           the maximum length of the output string
23

DESCRIPTION

25       1) Reads inlen characters of a buffer from the given kernel space
26       memory address, and returns up to MAXSTRINGLEN characters, where any
27       ASCII characters that are not printable are replaced by the
28       corresponding escape sequence in the returned string. Note that the
29       string will be surrounded by double quotes. On the rare cases when
30       kernel space data is not accessible at the given address, the address
31       itself is returned as a string, without double quotes.
32
33       2) Reads inlen characters of a buffer from the given kernel space
34       memory address, and returns up to outlen characters, where any ASCII
35       characters that are not printable are replaced by the corresponding
36       escape sequence in the returned string. Note that the string will be
37       surrounded by double quotes. On the rare cases when kernel space data
38       is not accessible at the given address, the address itself is returned
39       as a string, without double quotes.
40

SEE ALSO

42       tapset::conversions(3stap)
43
44
45
46SystemTap Tapset Reference         May 2019        FUNCTION::KERNEL_BUF(3stap)
Impressum