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