]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/receive_samples.html
xnu-792.6.70.tar.gz
[apple/xnu.git] / osfmk / man / receive_samples.html
CommitLineData
9bccf70c 1<h2>receive_samples</h2>\r<p>\rServer Interface - Handles the occurrence of a PC sampling message\r\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t receive_samples</strong>\r <strong>(mach_port_t</strong> <var>sample_port</var>,\r <strong>sample_array_t</strong> <var>samples</var>,\r <strong>mach_msg_type_number_t</strong> <var>sample_count</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<dt> <var>sample_port</var>\r<dd>\r[in sample (receive) right] The port to which the sample message was \rsent.\r\r<dt> <var>samples</var>\r<dd>\r[pointer to in array of vm_address_t] An array of PC sample values.\r\r<dt> <var>sample_count</var>\r<dd>\r[in scalar] The number of values in samples.\r</dl>\r\r<h3>DESCRIPTION</h3>\r<p>\rA <strong>receive_samples</strong> function is called by\r<strong>prof_server</strong> as the result of a kernel \rmessage indicating that a set of program counter samples has been gathered. \rThe parameter <var>sample_port</var> specifies the port named via\ra previous call to <strong>task_sample</strong>\ror <strong>thread_sample</strong>.\r\r<h3>NOTES</h3>\r<p>\rThis interface is machine word length specific because of the virtual addresses \rin the <var>samples</var> parameter.\r\r<h3>RETURN VALUE</h3>\r<p>\rIrrelevant.\r\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="task_sample.html"><strong>task_sample</strong></a>,\r<a href="thread_sample.html"><strong>thread_sample</strong></a>,\r<a href="prof_server.html"><strong>prof_server</strong></a>.\r