Re: [rfc-patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-11-17 Thread Mathieu Desnoyers
* Roel Kluin ([EMAIL PROTECTED]) wrote: [...] > > for (i = 0; i < KPROBE_TABLE_SIZE; i++) { > > head = _table[i]; > > + kernel_text_lock(); > > hlist_for_each_entry_rcu(p, node, head, hlist) > > arch_arm_kprobe(p); > > +

Re: [rfc-patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-11-17 Thread Roel Kluin
Mathieu Desnoyers wrote: > 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. > > Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> > Acked-by: Ananth N Mavinakayanahalli <[EMAIL PROTECTED]>

Re: [rfc-patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-11-17 Thread Roel Kluin
Mathieu Desnoyers wrote: 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. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC:

Re: [rfc-patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-11-17 Thread Mathieu Desnoyers
* Roel Kluin ([EMAIL PROTECTED]) wrote: [...] for (i = 0; i KPROBE_TABLE_SIZE; i++) { head = kprobe_table[i]; + kernel_text_lock(); hlist_for_each_entry_rcu(p, node, head, hlist) arch_arm_kprobe(p); +

[rfc-patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-11-16 Thread Mathieu Desnoyers
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. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> Acked-by: Ananth N Mavinakayanahalli <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC: [EMAIL

[rfc-patch 07/11] Text Edit Lock - kprobes architecture independent support

2007-11-16 Thread Mathieu Desnoyers
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. Signed-off-by: Mathieu Desnoyers [EMAIL PROTECTED] Acked-by: Ananth N Mavinakayanahalli [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL