Re: [PATCH v9 06/10] target/ppc: enable PMU instruction count

2021-12-01 Thread David Gibson
On Wed, Dec 01, 2021 at 12:17:30PM -0300, Daniel Henrique Barboza wrote: > The PMU is already counting cycles by calculating time elapsed in > nanoseconds. Counting instructions is a different matter and requires > another approach. > > This patch adds the capability of counting completed instruct

[PATCH v9 06/10] target/ppc: enable PMU instruction count

2021-12-01 Thread Daniel Henrique Barboza
The PMU is already counting cycles by calculating time elapsed in nanoseconds. Counting instructions is a different matter and requires another approach. This patch adds the capability of counting completed instructions (Perf event PM_INST_CMPL) by counting the amount of instructions translated in