Re: [RESEND PATCH V3 3/8] perf/x86/intel: Support hardware TopDown metrics
From: Andi Kleen
Date: Fri Aug 30 2019 - 20:31:13 EST
> the same manner. It would greatly simplify the kernel implementation.
I tried that originally. It was actually more complicated.
You can't really do deltas on raw metrics, and a lot of the perf
infrastructure is built around deltas.
To do the regular reset and not lose precision over time internally
you have to keep expanded counters anyways. And if you do that
you can just expose them to user space too, and have everything
in user space just work without any changes (except for the final
output)
-Andi