]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Add kernel support for new MSR[HV PR] bits in trace-imc
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>
Mon, 13 Jul 2020 14:46:23 +0000 (20:16 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:46 +0000 (13:12 +1000)
commit041d5d51d7775050d1c5b3a1396eb9ed1d9e00e0
treec4bac83d1ef6b6d7b20d2b2aebd0f2192a72ff7f
parente2be4c3c40016d2253209420126d304094ca2706
powerpc/perf: Add kernel support for new MSR[HV PR] bits in trace-imc

IMC trace-mode record has MSR[HV PR] bits added in the third DW.
These bits can be used to set the cpumode for the instruction pointer
captured in each sample.

Add support in kernel to use these bits to set the cpumode for
each sample.

Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200713144623.508695-1-maddy@linux.ibm.com
arch/powerpc/include/asm/imc-pmu.h
arch/powerpc/perf/imc-pmu.c