Re: [PATCH v8 02/10] target/ppc: PMU basic cycle count for pseries TCG

2021-11-26 Thread David Gibson
On Thu, Nov 25, 2021 at 12:08:09PM -0300, Daniel Henrique Barboza wrote: > This patch adds the barebones of the PMU logic by enabling cycle > counting. The overall logic goes as follows: > > - MMCR0 reg initial value is set to 0x8000 (MMCR0_FC set) to avoid > having to spin the PMU right at sy

[PATCH v8 02/10] target/ppc: PMU basic cycle count for pseries TCG

2021-11-25 Thread Daniel Henrique Barboza
This patch adds the barebones of the PMU logic by enabling cycle counting. The overall logic goes as follows: - MMCR0 reg initial value is set to 0x8000 (MMCR0_FC set) to avoid having to spin the PMU right at system init; - to retrieve the events that are being profiled, pmc_get_event() will