perf script: improve validation of sample attributes for output fields