prof_server.html   [plain text]

<strong>Function</strong> - Handle the next kernel-generated PC sample message.
<strong>boolean_t	prof_server</strong>
		<strong>(mach_msg_header_t</strong>	<var>request_msg</var>,
		<strong>mach_msg_header_t</strong>	<var>reply_ms</var><strong>);</strong>
<dt> <var>in_msg</var> 
[pointer to in structure]
The sample message received from the kernel.
<dt> <var>out_msg</var> 
[out structure]
Not used.
The <strong>prof_server</strong> function is the MIG generated server
handling function to
handle messages from the kernel corresponding to program counter (profiling)
samples.  Such messages are delivered to the task or thread sample port set by 
<strong>task_sample</strong> or <strong>thread_sample</strong>.  The <strong>prof_server</strong>
function performs all
necessary argument handling for this kernel message and calls the appropriate
handling function.  These functions must be supplied by the caller.
<dt> <strong>TRUE</strong>
The message was handled and the appropriate function was called.
<dt> <strong>FALSE</strong>
The message did not apply to the sample mechanism and no other
action was taken.
<a href="receive_samples.html"><strong>receive_samples<strong></a>.