pub fn sys_thread_get_trace_events(target: ObjID) -> Result<u64, TwzError>
Get the Trap State for the thread.