Este conteúdo não está disponível no idioma selecionado.

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)
Copy to Clipboard Toggle word wrap
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)
Copy to Clipboard Toggle word wrap
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)
Copy to Clipboard Toggle word wrap
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.

9.4.4. user_string_warn

General syntax:
user_string_warn:string (addr:long)
Copy to Clipboard Toggle word wrap
This function copies a string from userspace at given address. It prints a verbose error message on failure.

9.4.5. user_string_quoted

General syntax:
user_string_quoted:string (addr:long)
Copy to Clipboard Toggle word wrap
This function copies a string from userspace at given address. Any ASCII characters that are not printable are replaced by the corresponding escape sequence in the returned string.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat