xref: /xnu-11417.121.6/osfmk/man/etap_trace_thread.html (revision a1e26a70f38d1d7daa7b49b258e2f8538ad81650)
1*a1e26a70SApple OSS Distributions<h2>etap_trace_thread</h2>
2*a1e26a70SApple OSS Distributions<hr>
3*a1e26a70SApple OSS Distributions<p>
4*a1e26a70SApple OSS Distributions<strong>Function</strong> - Set a thread's ETAP trace status.
5*a1e26a70SApple OSS Distributions<h3>SYNOPSIS</h3>
6*a1e26a70SApple OSS Distributions<pre>
7*a1e26a70SApple OSS Distributions<strong>#include&ltmach/etap.h&gt</strong>
8*a1e26a70SApple OSS Distributions
9*a1e26a70SApple OSS Distributions<strong>kern_return_t   etap_trace_thread</strong>
10*a1e26a70SApple OSS Distributions                <strong>(thread_act_t</strong>                     <var>target_thread</var>,
11*a1e26a70SApple OSS Distributions                 <strong>boolean_t</strong>                               <var>active</var><strong>);</strong>
12*a1e26a70SApple OSS Distributions</pre>
13*a1e26a70SApple OSS Distributions<h3>PARAMETERS</h3>
14*a1e26a70SApple OSS Distributions<dl>
15*a1e26a70SApple OSS Distributions<p>
16*a1e26a70SApple OSS Distributions<dt> <var>target_thread</var>
17*a1e26a70SApple OSS Distributions<dd>
18*a1e26a70SApple OSS DistributionsThe port of the thread who's ETAP trace status will be toggled.
19*a1e26a70SApple OSS Distributions<p>
20*a1e26a70SApple OSS Distributions<dt> <var>active</var>
21*a1e26a70SApple OSS Distributions<dd>
22*a1e26a70SApple OSS DistributionsThe boolean value (either TRUE or FALSE) stating whether the thread's
23*a1e26a70SApple OSS DistributionsETAP trace status will be activated or not. Passing TRUE will enable
24*a1e26a70SApple OSS Distributionsthe thread's trace status and FALSE will deactivate it.
25*a1e26a70SApple OSS Distributions</dl>
26*a1e26a70SApple OSS Distributions<h3>DESCRIPTION</h3>
27*a1e26a70SApple OSS Distributions<p>
28*a1e26a70SApple OSS DistributionsThe <strong>etap_trace_thread</strong> system call is used to
29*a1e26a70SApple OSS Distributionstoggle the ETAP trace status of a thread.
30*a1e26a70SApple OSS Distributions<h3>RETURN VALUES</h3>
31*a1e26a70SApple OSS Distributions<dl>
32*a1e26a70SApple OSS Distributions  <dt> <strong>KERN_SUCCESS</strong>
33*a1e26a70SApple OSS Distributions       <dd>
34*a1e26a70SApple OSS Distributions	    The call was performed successfully.
35*a1e26a70SApple OSS Distributions<p>
36*a1e26a70SApple OSS Distributions  <dt> <strong>KERN_INVALID_ARGUMENT</strong>
37*a1e26a70SApple OSS Distributions       <dd>
38*a1e26a70SApple OSS Distributions	    The value of <var>target_thread</var> does not name a valid thread.
39*a1e26a70SApple OSS Distributions<p>
40*a1e26a70SApple OSS Distributions  <dt> <strong>KERN_FAILURE</strong>
41*a1e26a70SApple OSS Distributions       <dd>
42*a1e26a70SApple OSS Distributions	    ETAP is not configured in the kernel.
43*a1e26a70SApple OSS Distributions</dl>
44*a1e26a70SApple OSS Distributions<h3>RELATED INFORMATION</h3>
45*a1e26a70SApple OSS Distributions<p>
46*a1e26a70SApple OSS DistributionsFunctions:
47*a1e26a70SApple OSS Distributions<a href="etap_probe.html"><strong>etap_probe</strong></a>,
48*a1e26a70SApple OSS Distributions<a href="etap_trace_event.html"><strong>etap_trace_event</strong></a>,
49*a1e26a70SApple OSS Distributions<a href="etap_get_info.html"><strong>etap_get_info</strong></a>.
50