perf inject: Handle output file via perf_data_file object