Re: [PATCH v3 3/3] powerpc/perf: Fix the check for SIAR value

2021-08-18 Thread kajoljain
On 8/18/21 6:58 PM, Christophe Leroy wrote: > > > Le 18/08/2021 à 15:19, Kajol Jain a écrit : >> Incase of random sampling, there can be scenarios where >> Sample Instruction Address Register(SIAR) may not latch >> to the sampled instruction and could result in >> the value of 0. In these scen

Re: [PATCH v3 3/3] powerpc/perf: Fix the check for SIAR value

2021-08-18 Thread Christophe Leroy
Le 18/08/2021 à 15:19, Kajol Jain a écrit : Incase of random sampling, there can be scenarios where Sample Instruction Address Register(SIAR) may not latch to the sampled instruction and could result in the value of 0. In these scenarios it is preferred to return regs->nip. These corner cases