1*d8b80295SApple OSS Distributions<h2>etap_get_info</h2> 2*d8b80295SApple OSS Distributions<hr> 3*d8b80295SApple OSS Distributions<p> 4*d8b80295SApple OSS Distributions<strong>Function</strong> - Map ETAP buffers and tables into server's address space. 5*d8b80295SApple OSS Distributions<h3>SYNOPSIS</h3> 6*d8b80295SApple OSS Distributions<pre> 7*d8b80295SApple OSS Distributions<strong>#include<mach/etap.h></strong> 8*d8b80295SApple OSS Distributions 9*d8b80295SApple OSS Distributions<strong>kern_return_t etap_get_info</strong> 10*d8b80295SApple OSS Distributions <strong>(host_priv_t</strong> <var>priv_port</var>, 11*d8b80295SApple OSS Distributions <strong>int</strong> <var>int</var>, 12*d8b80295SApple OSS Distributions <strong>int</strong> <var>int</var>, 13*d8b80295SApple OSS Distributions <strong>vm_offset_t</strong> <var>vm_offset_t</var>, 14*d8b80295SApple OSS Distributions <strong>vm_offset_t</strong> <var>vm_offset_t</var>, 15*d8b80295SApple OSS Distributions <strong>int</strong> <var>int</var>, 16*d8b80295SApple OSS Distributions <strong>int</strong> <var>int</var>, 17*d8b80295SApple OSS Distributions <strong>int</strong> <var>int</var>, 18*d8b80295SApple OSS Distributions <strong>int</strong> <var>int</var><strong>);</strong> 19*d8b80295SApple OSS Distributions</pre> 20*d8b80295SApple OSS Distributions<h3>PARAMETERS</h3> 21*d8b80295SApple OSS Distributions<dl> 22*d8b80295SApple OSS Distributions<p> 23*d8b80295SApple OSS Distributions<dt> <var>priv_port</var> 24*d8b80295SApple OSS Distributions<dd> 25*d8b80295SApple OSS Distributionsthe name of the Server's privileged device port (server_device_port), 26*d8b80295SApple OSS Distributions granting the Server access to this service. 27*d8b80295SApple OSS Distributions<p> 28*d8b80295SApple OSS Distributions<dt> <var>et_entries</var> 29*d8b80295SApple OSS Distributions<dd> 30*d8b80295SApple OSS Distributionsused to return number of entries in the event table. 31*d8b80295SApple OSS Distributions<p> 32*d8b80295SApple OSS Distributions<dt> <var>st_entries</var> 33*d8b80295SApple OSS Distributions<dd> 34*d8b80295SApple OSS Distributionsused to return number of entries in the subsystem table. 35*d8b80295SApple OSS Distributions<p> 36*d8b80295SApple OSS Distributions<dt> <var>et_offset</var> 37*d8b80295SApple OSS Distributions<dd> 38*d8b80295SApple OSS Distributionsused to return the event table's page offset. 39*d8b80295SApple OSS Distributions<p> 40*d8b80295SApple OSS Distributions<dt> <var>st_offset</var> 41*d8b80295SApple OSS Distributions<dd> 42*d8b80295SApple OSS Distributionsused to return the subsystem table's page offset. 43*d8b80295SApple OSS Distributions<p> 44*d8b80295SApple OSS Distributions<dt> <var>cb_width</var> 45*d8b80295SApple OSS Distributions<dd> 46*d8b80295SApple OSS Distributionsreturns the current cumulative buffer interval width. 47*d8b80295SApple OSS Distributions<p> 48*d8b80295SApple OSS Distributions<dt> <var>mb_size</var> 49*d8b80295SApple OSS Distributions<dd> 50*d8b80295SApple OSS Distributionsreturns the size of the monitored buffers, 51*d8b80295SApple OSS Distributions<p> 52*d8b80295SApple OSS Distributions<dt> <var>mb_entries</var> 53*d8b80295SApple OSS Distributions<dd> 54*d8b80295SApple OSS Distributionsreturns the maximum number of entries in a monitored buffer. 55*d8b80295SApple OSS Distributions<p> 56*d8b80295SApple OSS Distributions<dt> <var>mb_cpus</var> 57*d8b80295SApple OSS Distributions<dd> 58*d8b80295SApple OSS Distributionsreturns the number of allocated monitored buffers (or supported CPUs). 59*d8b80295SApple OSS Distributions</dl> 60*d8b80295SApple OSS Distributions<h3>DESCRIPTION</h3> 61*d8b80295SApple OSS Distributions<p> 62*d8b80295SApple OSS DistributionsThe <strong>etap_get_info</strong> interface provides the user space 63*d8b80295SApple OSS Distributionsetap server or daemon with configuration and location information pertaining 64*d8b80295SApple OSS Distributionsto the kernel's internal ETAP buffers; this information enables the caller 65*d8b80295SApple OSS Distributionsto properly map the ETAP buffers and tables into its address 66*d8b80295SApple OSS Distributionsspace. When mapping is successfully completed, the Server displays the 67*d8b80295SApple OSS DistributionsETAP configuration on the console. The configuration output will 68*d8b80295SApple OSS Distributionsresemble the following: 69*d8b80295SApple OSS Distributions<pre> 70*d8b80295SApple OSS Distributions ETAP configuration [ee:108 se:8 eo:a60 so:acc cw:0 ms:1008008 me:36 mc:1] 71*d8b80295SApple OSS Distributions ETAP event table mapped 72*d8b80295SApple OSS Distributions ETAP subsystem table mapped 73*d8b80295SApple OSS Distributions ETAP monitored buffer #0 mapped 74*d8b80295SApple OSS Distributions</pre> 75*d8b80295SApple OSS Distributions<p> 76*d8b80295SApple OSS DistributionsThe values between the brackets correspond with the arguments returned 77*d8b80295SApple OSS Distributionsby the <strong>etap_get_info</strong> call (listed 78*d8b80295SApple OSS Distributionsabove). For example, "ee:108" indicates that the event table contains 79*d8b80295SApple OSS Distributions108 ETAP event types and "mc:1" indicates that one monitored buffer 80*d8b80295SApple OSS Distributionshas been allocated. 81*d8b80295SApple OSS Distributions<h3>RETURN VALUES</h3> 82*d8b80295SApple OSS Distributions<dl> 83*d8b80295SApple OSS Distributions <dt> <strong>KERN_SUCCESS</strong> 84*d8b80295SApple OSS Distributions <dd> 85*d8b80295SApple OSS Distributions The call was performed successfully. 86*d8b80295SApple OSS Distributions</dl> 87*d8b80295SApple OSS Distributions<h3>RELATED INFORMATION</h3> 88*d8b80295SApple OSS Distributions<p> 89*d8b80295SApple OSS DistributionsFunctions: 90*d8b80295SApple OSS Distributions<a href="etap_probe.html"><strong>etap_probe</strong></a>, 91*d8b80295SApple OSS Distributions<a href="etap_trace_thread.html"><strong>etap_trace_thread</strong></a>, 92*d8b80295SApple OSS Distributions<a href="etap_trace_event.html"><strong>etap_trace_event</strong></a>, 93*d8b80295SApple OSS Distributions<a href="etap_trace_event.html"><strong>etap_get_info</strong></a>. 94