perf, tools: Save event scaling factors in perf.data

To process metrics, perf script needs to know the scaling
factors reported by sysfs for events. Save the scaling factors
in the perf.data metadata in a new SCALE header.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
3 files changed