diff options
author | Ravi Bangoria <[email protected]> | 2020-05-14 16:47:39 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-05-19 00:14:45 +1000 |
commit | 29da4f91c0c1fbda12b8a31be0d564930208c92e (patch) | |
tree | 5ae2bc339c5d581722f099efd4110efa05dde5be /tools/perf/scripts/python/sctop.py | |
parent | 74c6881019b7d56c327fffc268d97adb5eb1b4f9 (diff) |
powerpc/watchpoint: Don't allow concurrent perf and ptrace events
With Book3s DAWR, ptrace and perf watchpoints on powerpc behaves
differently. Ptrace watchpoint works in one-shot mode and generates
signal before executing instruction. It's ptrace user's job to
single-step the instruction and re-enable the watchpoint. OTOH, in
case of perf watchpoint, kernel emulates/single-steps the instruction
and then generates event. If perf and ptrace creates two events with
same or overlapping address ranges, it's ambiguous to decide who
should single-step the instruction. Because of this issue, don't
allow perf and ptrace watchpoint at the same time if their address
range overlaps.
Signed-off-by: Ravi Bangoria <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Reviewed-by: Michael Neuling <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions