perf trace: Separate routine that handles an event from the one that reads it