<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>function::probefunc</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="SystemTap Tapset Reference Manual"><link rel="up" href="context_stp.html" title="Chapter 2. Context Functions"><link rel="prev" href="API-probe-type.html" title="function::probe_type"><link rel="next" href="API-probemod.html" title="function::probemod"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">function::probefunc</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-probe-type.html">Prev</a> </td><th width="60%" align="center">Chapter 2. Context Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-probemod.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-probefunc"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>function::probefunc — Return the probe point's function name, if known </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> probefunc:string() </pre></div><div class="refsect1"><a name="idp144834780"></a><h2>Arguments</h2><p> None </p></div><div class="refsect1"><a name="idp144835356"></a><h2>Description</h2><p> This function returns the name of the function being probed based on the current address, as computed by symname(<code class="function">addr</code>) or usymname(<code class="function">uaddr</code>) depending on probe context (whether the probe is a user probe or a kernel probe). </p></div><div class="refsect1"><a name="idp144836780"></a><h2>Please note</h2><p> this function's behaviour differs between SystemTap 2.0 and earlier versions. Prior to 2.0, <code class="function">probefunc</code> obtained the function name from the probe point string as returned by <code class="function">pp</code>, and used the current address as a fallback. </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-probe-type.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="context_stp.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-probemod.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">function::probe_type</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">function::probemod</span></td></tr></table></div></body></html>