perf data: Add is_perf_data function