perf tools: Use common process_event functions for annotate and report