diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2017-10-23 19:37:38 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-12 15:51:40 +0300 |
commit | 8a2d71a3f2737e2448aa68de2b6052cb570d3d2a (patch) | |
tree | f51a9abf2998ac22df6bc90d135b9359b1a11d0d /tools/perf/scripts/python | |
parent | fc2a5a6161a26b386eb0936b74a852ff83793fb6 (diff) | |
download | linux-8a2d71a3f2737e2448aa68de2b6052cb570d3d2a.tar.xz |
powerpc/kprobes: Disable preemption before invoking probe handler for optprobes
Per Documentation/kprobes.txt, probe handlers need to be invoked with
preemption disabled. Update optimized_callback() to do so. Also move
get_kprobe_ctlblk() invocation post preemption disable, since it
accesses pre-cpu data.
This was not an issue so far since optprobes wasn't selected if
CONFIG_PREEMPT was enabled. Commit a30b85df7d599f ("kprobes: Use
synchronize_rcu_tasks() for optprobe with CONFIG_PREEMPT=y") changes
this.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions