tracing, Text Edit Lock - kprobes architecture independent support
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 6 Mar 2009 15:36:38 +0000 (10:36 -0500)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Mar 2009 15:49:00 +0000 (16:49 +0100)
commit4460fdad85becd569f11501ad5b91814814335ff
tree7c781d0131f6130498ee2a346c7e95eb9b9b869f
parent0e39ac444636ff5be39b26f1cb56d79594654dda
tracing, Text Edit Lock - kprobes architecture independent support

Use the mutual exclusion provided by the text edit lock in the kprobes code. It
allows coherent manipulation of the kernel code by other subsystems.

Changelog:

Move the kernel_text_lock/unlock out of the for loops.
Use text_mutex directly instead of a function.
Remove whitespace modifications.

(note : kprobes_mutex is always taken outside of text_mutex)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
LKML-Reference: <49B14306.2080202@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/kprobes.c