perf script: Add support for H/W and S/W events