Debian Codegraph @

doc/SystemTap_Tapset_Reference/man3/function::returnstr.3stap

raw
1 '\" t
2 .\" Title: function::returnstr
3 .\" Author:
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: October 2025
6 .\" Manual: Errno Tapset
7 .\" Source: SystemTap Tapset Reference
8 .\" Language: English
9 .\"
10 .TH "FUNCTION::RETURNSTR" "3stap" "October 2025" "SystemTap Tapset Reference" "Errno Tapset"
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::returnstr \- Formats the return value as a string
32 .SH "SYNOPSIS"
33 .sp
34 .nf
35 returnstr:string(format:long)
36 .fi
37 .SH "ARGUMENTS"
38 .PP
39 \fIformat\fR
40 .RS 4
41 Variable to determine return type base value
42 .RE
43 .SH "DESCRIPTION"
44 .PP
45 This function is used by the nd_syscall tapset, and returns a string\&. Set format equal to 1 for a decimal, 2 for hex, 3 for octal\&.
46 .PP
47 Note that this function should only be used in dwarfless probes (i\&.e\&. \*(Aqkprobe\&.function(\(lqfoo\(rq)\*(Aq)\&. Other probes should use
48 \fBreturn_str\fR\&.
49 .SH SEE ALSO\n
50 .IR tapset::errno (3stap)