fix perf events test for phantom