Write align_raw_trace_by_event.