osfmk/man/etap_trace_thread.html
Function - Set a thread's ETAP trace status.
**#include<mach/etap.h>**** kern\_return\_t etap\_trace\_thread****(thread\_act\_t**target\_thread, **boolean\_t** active**);**
target_threadThe port of the thread who's ETAP trace status will be toggled.
activeThe boolean value (either TRUE or FALSE) stating whether the thread's ETAP trace status will be activated or not. Passing TRUE will enable the thread's trace status and FALSE will deactivate it.
The etap_trace_thread system call is used to toggle the ETAP trace status of a thread.
KERN_SUCCESS The call was performed successfully.
KERN_INVALID_ARGUMENT The value of target_thread does not name a valid thread.
KERN_FAILURE ETAP is not configured in the kernel.
Functions: etap_probe, etap_trace_event, etap_get_info.