summaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>2017-07-11 13:57:49 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-07-11 15:19:36 +0300
commit20dd4c624d25156d5ec3345bbb690b98175ef879 (patch)
tree8e72695d0d3e3c5198851d4779f6dc1cbfaa9343 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent2400fd822f467cb4c886c879d8ad99feac9cf319 (diff)
downloadlinux-20dd4c624d25156d5ec3345bbb690b98175ef879.tar.xz
powerpc/perf: Fix SDAR_MODE value for continous sampling on Power9
In case of continous sampling (non-marked), the code currently sets MMCRA[SDAR_MODE] to 0b01 (Update on TLB miss) for Power9 DD1. On DD2 and later it copies the sdar_mode value from the event code, which for most events is 0b00 (No updates). However we must set a non-zero value for SDAR_MODE when doing continuous sampling, so honor the event code, unless it's zero, in which case we use use 0b01 (Update on TLB miss). Fixes: 78b4416aa249 ("powerpc/perf: Handle sdar_mode for marked event in power9") Cc: stable@vger.kernel.org # v4.11+ Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions