osfmk/man/receive_samples.html
Server Interface - Handles the occurrence of a PC sampling message
**kern\_return\_t receive\_samples**** (mach\_port\_t **sample\_port,** sample\_array\_t **samples,** mach\_msg\_type\_number\_t **sample\_count** );**
sample_port[in sample (receive) right] The port to which the sample message was sent. samples[pointer to in array of vm_address_t] An array of PC sample values. sample_count[in scalar] The number of values in samples.
A receive_samples function is called by prof_server as the result of a kernel message indicating that a set of program counter samples has been gathered. The parameter sample_port specifies the port named via a previous call to task_sample or thread_sample.
This interface is machine word length specific because of the virtual addresses in the samples parameter.
Irrelevant.
Functions: task_sample, thread_sample, prof_server.