]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Fix thresholding counter data for unknown type
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Sun, 9 Dec 2018 09:18:15 +0000 (14:48 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Dec 2018 09:53:11 +0000 (20:53 +1100)
commit9e4b502578338f214080e7fe29250ee89c7f8eb7
treed942541766da64abd89a138e7b6089fa910ae9b1
parentb4f2de3a4c02c583117fb443d549e01f518e7304
powerpc/perf: Fix thresholding counter data for unknown type

MMCRA[34:36] and MMCRA[38:44] expose the thresholding counter value.
Thresholding counter can be used to count latency cycles such as
load miss to reload. But threshold counter value is not relevant
when the sampled instruction type is unknown or reserved. Patch to
fix the thresholding counter value to zero when sampled instruction
type is unknown or reserved.

Fixes: 5296cefb7779('powerpc/perf: Support to export MMCRA[TEC*] field to userspace')
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/isa207-common.c