TraceEvent() gives you much finer control over wide and fast mode than you can get with tracelogger, which can simply set the mode for all events in all traced classes. Using TraceEvent(), you can set fast and wide mode for all classes, a specific class, or a specific event in a class:
TraceEvent( _NTO_TRACE_SETALLCLASSESWIDE ); TraceEvent( _NTO_TRACE_SETALLCLASSESFAST );
TraceEvent(_NTO_TRACE_SETCLASSFAST, int class); TraceEvent(_NTO_TRACE_SETCLASSWIDE, int class);
For example:
TraceEvent(_NTO_TRACE_SETCLASSWIDE, _NTO_TRACE_KERCALLENTER);
TraceEvent(_NTO_TRACE_SETEVENTFAST, int class, int event) TraceEvent(_NTO_TRACE_SETEVENTWIDE, int class, int event)
For example:
TraceEvent(_NTO_TRACE_SETEVENTFAST, _NTO_TRACE_KERCALLENTER, __KER_INTERRUPT_ATTACH);