summaryrefslogtreecommitdiffstats
path: root/lib/percpu_counter.c
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2015-02-13 14:40:24 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-13 21:21:42 -0800
commit977ad481b66ca91e1f6492b3c5c4748c68fdee9c (patch)
tree2662accb1f4f5d238a56bff10d541b0797998302 /lib/percpu_counter.c
parent5125991c9a9360fbdb717e22783c970bbd140660 (diff)
downloadlinux-977ad481b66ca91e1f6492b3c5c4748c68fdee9c.tar.gz
linux-977ad481b66ca91e1f6492b3c5c4748c68fdee9c.tar.bz2
linux-977ad481b66ca91e1f6492b3c5c4748c68fdee9c.zip
kprobes: set kprobes_all_disarmed earlier to enable re-optimization.
In original code, the probed instruction doesn't get optimized after echo 0 > /sys/kernel/debug/kprobes/enabled echo 1 > /sys/kernel/debug/kprobes/enabled This is because original code checks kprobes_all_disarmed in optimize_kprobe(), but this flag is turned off after calling that function. Therefore, optimize_kprobe() will see kprobes_all_disarmed == true and doesn't do the optimization. This patch simply turns off kprobes_all_disarmed earlier to enable optimization. Signed-off-by: Wang Nan <wangnan0@huawei.com> Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/percpu_counter.c')
0 files changed, 0 insertions, 0 deletions