此内容没有您所选择的语言版本。
9.4. Accessing string data at a probe point
The following functions provide methods to access string data at a probe point.
9.4.1. kernel_string
General syntax:
kernel_string:string (addr:long)
Copies a string from kernel space at a given address. The validation of this address is only partial.
9.4.2. user_string
General syntax:
user_string:string (addr:long)
This function copies a string from user space at a given address. The validation of this address is only partial. In rare cases when userspace data is not accessible, this function returns the string
<unknown>.
9.4.3. user_string2
General syntax:
user_string2:string (addr:long, err_msg:string)
This function is similar to
user_string
, (Section Section 9.4.2, “user_string”) but allows passing an error message as an argument to be returned if userspace data is not available.