jump label: Add jump_label_text_reserved() to reserve jump points
authorJason Baron <jbaron@redhat.com>
Fri, 17 Sep 2010 15:09:08 +0000 (11:09 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 22 Sep 2010 20:30:46 +0000 (16:30 -0400)
commit4c3ef6d79328c0e23ade60cbfc8d496123a6855c
tree4a28260548ff4ad507d12716d6cdaa6bc0451a87
parente0cf0cd49632552f063fb3ae58691946da45fb2e
jump label: Add jump_label_text_reserved() to reserve jump points

Add a jump_label_text_reserved(void *start, void *end), so that other
pieces of code that want to modify kernel text, can first verify that
jump label has not reserved the instruction.

Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
LKML-Reference: <06236663a3a7b1c1f13576bb9eccb6d9c17b7bfe.1284733808.git.jbaron@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/kprobes.c
include/linux/jump_label.h
kernel/jump_label.c
kernel/kprobes.c