X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..4ba76501152d51ccb5647018f3192c6096367d48:/osfmk/man/etap_trace_event.html diff --git a/osfmk/man/etap_trace_event.html b/osfmk/man/etap_trace_event.html old mode 100755 new mode 100644 index 46f16dc25..a56ff4145 --- a/osfmk/man/etap_trace_event.html +++ b/osfmk/man/etap_trace_event.html @@ -1 +1,108 @@ -
System Trap - manipulate event probes and lock event tracing.
#include<mach/etap.h> kern_return_t etap_trace_event (etap_data_t mode, mode type, boolean_t enable, enable nargs, mode mode);
The etap_trace_event system call is used to enable and disable kernel event probes (of a specified type) and all modes of lock event tracing. The call also supports a reset option, where the cumulative buffer data and all event type tracing is reset to zero. When the reset option is used, a new interval width can also be defined, using the nargs parameter.
To reset the ETAP instrumentation, the system call would utilize the mode parameter, passing the value of ETAP_RESET (All other parameters may equal NULL). If, at the time of reset, the nargs parameter is assigned a value, then the cumulative buffer interval width will be adjusted to be the size of that value. For example, the following system call would reset the ETAP instrumentation and adjust the cumulative buffer's interval width to 100ms:
etap_trace_event(ETAP_RESET, 0, 0, 100, 0);
Functions: etap_probe, etap_trace_thread, etap_get_info. \ No newline at end of file +
+System Trap - +manipulate event probes and lock event tracing. +
+#include<mach/etap.h> + +kern_return_t etap_trace_event + (etap_data_t mode, + mode type, + boolean_t enable, + enable nargs, + mode mode); ++
+
+
+
+
+
+
+
+
+
+
+The etap_trace_event system call is used to enable +and disable kernel event probes (of a specified type) and all modes of lock event +tracing. The call also supports a reset option, where the cumulative +buffer data and all event type tracing is reset to zero. When the +reset option is used, a new interval width can also be defined, using +the nargs parameter. +
+To reset the ETAP instrumentation, +the system call would utilize the mode parameter, passing the value of +ETAP_RESET (All other parameters may equal NULL). If, at the time of +reset, the nargs parameter is assigned a value, then the +cumulative buffer interval width will be adjusted to be the size of +that value. For example, the following system call would reset the +ETAP instrumentation and adjust the cumulative buffer's interval width +to 100ms: +
+ etap_trace_event(ETAP_RESET, 0, 0, 100, 0); + ++
+
+
+Functions: +etap_probe, +etap_trace_thread, +etap_get_info.