fix garbage in perf record output