1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>trace_signal_deliver</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel Tracepoint API"><link rel="up" href="signal.html" title="Chapter&#160;3.&#160;SIGNAL"><link rel="prev" href="API-trace-signal-generate.html" title="trace_signal_generate"><link rel="next" href="block.html" title="Chapter&#160;4.&#160;Block IO"></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">trace_signal_deliver</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-trace-signal-generate.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;3.&#160;SIGNAL</th><td width="20%" align="right">&#160;<a accesskey="n" href="block.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-trace-signal-deliver"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>trace_signal_deliver &#8212; 
2     called when a signal is delivered
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">trace_signal_deliver </b>(</code></td><td>int <var class="pdparam">sig</var>, </td></tr><tr><td>&#160;</td><td>struct siginfo * <var class="pdparam">info</var>, </td></tr><tr><td>&#160;</td><td>struct k_sigaction * <var class="pdparam">ka</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1117461908"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sig</code></em></span></dt><dd><p>
4     signal number
5    </p></dd><dt><span class="term"><em class="parameter"><code>info</code></em></span></dt><dd><p>
6     pointer to struct siginfo
7    </p></dd><dt><span class="term"><em class="parameter"><code>ka</code></em></span></dt><dd><p>
8     pointer to struct k_sigaction
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1120340188"></a><h2>Description</h2><p>
10   A 'sig' signal is delivered to current process with 'info' siginfo,
11   and it will be handled by 'ka'. ka-&gt;sa.sa_handler can be SIG_IGN or
12   SIG_DFL.
13   Note that some signals reported by signal_generate tracepoint can be
14   lost, ignored or modified (by debugger) before hitting this tracepoint.
15   This means, this can show which signals are actually delivered, but
16   matching generated signals and delivered signals may not be correct.
17</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-trace-signal-generate.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="signal.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="block.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">trace_signal_generate</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Chapter&#160;4.&#160;Block IO</td></tr></table></div></body></html>
18