'\" t .\" Title: function::caller .\" Author: .\" Generator: DocBook XSL Stylesheets v1.76.1 .\" Date: May 2013 .\" Manual: Context Functions .\" Source: SystemTap Tapset Reference .\" Language: English .\" .TH "FUNCTION:" "3stap" "May 2013" "SystemTap Tapset Reference" "Context Functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" function::caller \- Return name and address of calling function .SH "SYNOPSIS" .sp .nf caller:string() .fi .SH "ARGUMENTS" .PP None .SH "DESCRIPTION" .PP This function returns the address and name of the calling function\&. This is equivalent to calling: sprintf(\(lq\fBs\fR 0x\fBx\fR\(rq, symname(\fBcaller_addr\fR, \fBcaller_addr\fR)) Works only for return probes at this time\&.