diff options
author | Michael Ellerman <[email protected]> | 2014-07-23 17:20:04 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <[email protected]> | 2014-07-23 17:16:47 +1000 |
commit | 8903461c9bc56fcb041fb92d054e2529951770b6 (patch) | |
tree | 56c803836b9612a4e0cf25471df04621a4307cbd /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 6f5405bc2ee0102bb3856e2cdea64ff415db2e0c (diff) |
powerpc/perf: Fix MMCR2 handling for EBB
In the recent commit b50a6c584bb4 "Clear MMCR2 when enabling PMU", I
screwed up the handling of MMCR2 for tasks using EBB.
We must make sure we set MMCR2 *before* ebb_switch_in(), otherwise we
overwrite the value of MMCR2 that userspace may have written. That
potentially breaks a task that uses EBB and manually uses MMCR2 for
event freezing.
Fixes: b50a6c584bb4 ("powerpc/perf: Clear MMCR2 when enabling PMU")
Cc: [email protected]
Signed-off-by: Michael Ellerman <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions