Back to Darwin Xnu

Prof Server

osfmk/man/prof_server.html

latest1.1 KB
Original Source

prof_server


Function - Handle the next kernel-generated PC sample message.

SYNOPSIS

**boolean\_t prof\_server**** (mach\_msg\_header\_t **request\_msg,** mach\_msg\_header\_t **reply\_ms** );**

PARAMETERS

in_msg[pointer to in structure] The sample message received from the kernel.

out_msg[out structure] Not used.

DESCRIPTION

The prof_server 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 task_sample or thread_sample. The prof_server function performs all necessary argument handling for this kernel message and calls the appropriate handling function. These functions must be supplied by the caller.

RETURN VALUES

TRUE The message was handled and the appropriate function was called.

FALSE The message did not apply to the sample mechanism and no other action was taken.

Functions: receive_samples.