| 1 |
'\" t |
| 2 |
.\" Title: function::sprint_stack |
| 3 |
.\" Author: |
| 4 |
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> |
| 5 |
.\" Date: October 2025 |
| 6 |
.\" Manual: Context Functions |
| 7 |
.\" Source: SystemTap Tapset Reference |
| 8 |
.\" Language: English |
| 9 |
.\" |
| 10 |
.TH "FUNCTION::SPRINT_STA" "3stap" "October 2025" "SystemTap Tapset Reference" "Context Functions" |
| 11 |
.\" ----------------------------------------------------------------- |
| 12 |
.\" * Define some portability stuff |
| 13 |
.\" ----------------------------------------------------------------- |
| 14 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 |
.\" http://bugs.debian.org/507673 |
| 16 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
.ie \n(.g .ds Aq \(aq |
| 19 |
.el .ds Aq ' |
| 20 |
.\" ----------------------------------------------------------------- |
| 21 |
.\" * set default formatting |
| 22 |
.\" ----------------------------------------------------------------- |
| 23 |
.\" disable hyphenation |
| 24 |
.nh |
| 25 |
.\" disable justification (adjust text to left margin only) |
| 26 |
.ad l |
| 27 |
.\" ----------------------------------------------------------------- |
| 28 |
.\" * MAIN CONTENT STARTS HERE * |
| 29 |
.\" ----------------------------------------------------------------- |
| 30 |
.SH "NAME" |
| 31 |
function::sprint_stack \- Return stack for kernel addresses from string |
| 32 |
.SH "SYNOPSIS" |
| 33 |
.sp |
| 34 |
.nf |
| 35 |
sprint_stack:string(stk:string) |
| 36 |
.fi |
| 37 |
.SH "ARGUMENTS" |
| 38 |
.PP |
| 39 |
\fIstk\fR |
| 40 |
.RS 4 |
| 41 |
String with list of hexadecimal (kernel) addresses |
| 42 |
.RE |
| 43 |
.SH "DESCRIPTION" |
| 44 |
.PP |
| 45 |
Perform a symbolic lookup of the addresses in the given string, which is assumed to be the result of a prior call to |
| 46 |
\fBbacktrace\fR\&. |
| 47 |
.PP |
| 48 |
Returns a simple backtrace from the given hex string\&. One line per address\&. Includes the symbol name (or hex address if symbol couldn\*(Aqt be resolved) and module name (if found)\&. Includes the offset from the start of the function if found, otherwise the offset will be added to the module (if found, between brackets)\&. Returns the backtrace as string (each line terminated by a newline character)\&. Note that the returned stack will be truncated to MAXSTRINGLEN, to print fuller and richer stacks use print_stack\&. |
| 49 |
.SH "NOTE" |
| 50 |
.PP |
| 51 |
it is recommended to use |
| 52 |
\fBsprint_syms\fR |
| 53 |
instead of this function\&. |
| 54 |
.SH SEE ALSO\n |
| 55 |
.IR tapset::context-symbols (3stap) |