perf script: Change process_event prototype