Make PERF_TIMING macro work correctly