Re: [PATCH v2 14/16] powerpc/watchpoint: Don't allow concurrent perf and ptrace events

2020-04-01 Thread Christophe Leroy
Le 01/04/2020 à 08:13, Ravi Bangoria a écrit : 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 watch

[PATCH v2 14/16] powerpc/watchpoint: Don't allow concurrent perf and ptrace events

2020-03-31 Thread Ravi Bangoria
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 emul