Re: [PATCH v2 06/16] target/ppc: PMU: add instruction counting

2021-08-25 Thread Daniel Henrique Barboza
On 8/25/21 2:31 AM, David Gibson wrote: On Tue, Aug 24, 2021 at 01:30:22PM -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 capab

Re: [PATCH v2 06/16] target/ppc: PMU: add instruction counting

2021-08-24 Thread David Gibson
On Tue, Aug 24, 2021 at 01:30:22PM -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 v2 06/16] target/ppc: PMU: add instruction counting

2021-08-24 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