* Re: [PATCH] kprobes: kprobe_mutex is no longer a semaphore [not found] <200602251242.46408.jesper.juhl@gmail.com> @ 2006-02-27 6:42 ` Prasanna S Panchamukhi 2006-02-27 9:41 ` Jesper Juhl 0 siblings, 1 reply; 3+ messages in thread From: Prasanna S Panchamukhi @ 2006-02-27 6:42 UTC (permalink / raw) To: Jesper Juhl Cc: linux-kernel, Ananth N Mavinakayanahalli, Anil S Keshavamurthy, David S. Miller On Sat, Feb 25, 2006 at 12:42:46PM +0100, Jesper Juhl wrote: > > kprobe_mutex used to be a semaphore it is now a mutex, so calling down/up on > it is wrong, we should be using mutex_lock/mutex_unlock instead. > > gcc was kind enough to warn about this : > arch/i386/kernel/kprobes.c: In function `arch_remove_kprobe': > arch/i386/kernel/kprobes.c:135: warning: passing arg 1 of `down' from incompatible pointer type > arch/i386/kernel/kprobes.c:137: warning: passing arg 1 of `up' from incompatible pointer type > > > Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Looks good, this patch depends on the sem2mutex-kprobes.patch in -mm tree. http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc4/2.6.16-rc4-mm2/broken-out/sem2mutex-kprobes.patch Acked-by : Prasanna S Panchamukhi <prasanna@in.ibm.com> > --- > > arch/i386/kernel/kprobes.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > --- linux-2.6.16-rc4-mm2-orig/arch/i386/kernel/kprobes.c 2006-02-24 19:25:29.000000000 +0100 > +++ linux-2.6.16-rc4-mm2/arch/i386/kernel/kprobes.c 2006-02-25 12:34:19.000000000 +0100 > @@ -132,9 +132,9 @@ void __kprobes arch_disarm_kprobe(struct > > void __kprobes arch_remove_kprobe(struct kprobe *p) > { > - down(&kprobe_mutex); > + mutex_lock(&kprobe_mutex); > free_insn_slot(p->ainsn.insn); > - up(&kprobe_mutex); > + mutex_unlock(&kprobe_mutex); > } > > static inline void save_previous_kprobe(struct kprobe_ctlblk *kcb) > > -- Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Email: prasanna@in.ibm.com Ph: 91-80-51776329 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kprobes: kprobe_mutex is no longer a semaphore 2006-02-27 6:42 ` [PATCH] kprobes: kprobe_mutex is no longer a semaphore Prasanna S Panchamukhi @ 2006-02-27 9:41 ` Jesper Juhl 2006-02-27 9:49 ` Prasanna S Panchamukhi 0 siblings, 1 reply; 3+ messages in thread From: Jesper Juhl @ 2006-02-27 9:41 UTC (permalink / raw) To: prasanna Cc: linux-kernel, Ananth N Mavinakayanahalli, Anil S Keshavamurthy, David S. Miller On 2/27/06, Prasanna S Panchamukhi <prasanna@in.ibm.com> wrote: > On Sat, Feb 25, 2006 at 12:42:46PM +0100, Jesper Juhl wrote: > > > > kprobe_mutex used to be a semaphore it is now a mutex, so calling down/up on > > it is wrong, we should be using mutex_lock/mutex_unlock instead. > > > > gcc was kind enough to warn about this : > > arch/i386/kernel/kprobes.c: In function `arch_remove_kprobe': > > arch/i386/kernel/kprobes.c:135: warning: passing arg 1 of `down' from incompatible pointer type > > arch/i386/kernel/kprobes.c:137: warning: passing arg 1 of `up' from incompatible pointer type > > > > > > Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> > > > Looks good, this patch depends on the sem2mutex-kprobes.patch in -mm > tree. > http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc4/2.6.16-rc4-mm2/broken-out/sem2mutex-kprobes.patch > > Acked-by : Prasanna S Panchamukhi <prasanna@in.ibm.com> > Thank you. Are you going to merge it / push it to Andrew or Linus? If not I'll just queue it up with some other patches I have lying around and forward it with those other patches in a week or so. -- Jesper Juhl <jesper.juhl@gmail.com> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kprobes: kprobe_mutex is no longer a semaphore 2006-02-27 9:41 ` Jesper Juhl @ 2006-02-27 9:49 ` Prasanna S Panchamukhi 0 siblings, 0 replies; 3+ messages in thread From: Prasanna S Panchamukhi @ 2006-02-27 9:49 UTC (permalink / raw) To: Jesper Juhl Cc: linux-kernel, Ananth N Mavinakayanahalli, Anil S Keshavamurthy, David S. Miller, akpm On Mon, Feb 27, 2006 at 10:41:40AM +0100, Jesper Juhl wrote: > On 2/27/06, Prasanna S Panchamukhi <prasanna@in.ibm.com> wrote: > > On Sat, Feb 25, 2006 at 12:42:46PM +0100, Jesper Juhl wrote: > > > > > > kprobe_mutex used to be a semaphore it is now a mutex, so calling down/up on > > > it is wrong, we should be using mutex_lock/mutex_unlock instead. > > > > > > gcc was kind enough to warn about this : > > > arch/i386/kernel/kprobes.c: In function `arch_remove_kprobe': > > > arch/i386/kernel/kprobes.c:135: warning: passing arg 1 of `down' from incompatible pointer type > > > arch/i386/kernel/kprobes.c:137: warning: passing arg 1 of `up' from incompatible pointer type > > > > > > > > > Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> > > > > > > Looks good, this patch depends on the sem2mutex-kprobes.patch in -mm > > tree. > > http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc4/2.6.16-rc4-mm2/broken-out/sem2mutex-kprobes.patch > > > > Acked-by : Prasanna S Panchamukhi <prasanna@in.ibm.com> > > > > Thank you. > > Are you going to merge it / push it to Andrew or Linus? Yes. > If not I'll just queue it up with some other patches I have lying > around and forward it with those other patches in a week or so. > > Thanks Prasanna > -- > Jesper Juhl <jesper.juhl@gmail.com> > Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html > Plain text mails only, please http://www.expita.com/nomime.html -- Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Email: prasanna@in.ibm.com Ph: 91-80-51776329 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-27 9:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200602251242.46408.jesper.juhl@gmail.com>
2006-02-27 6:42 ` [PATCH] kprobes: kprobe_mutex is no longer a semaphore Prasanna S Panchamukhi
2006-02-27 9:41 ` Jesper Juhl
2006-02-27 9:49 ` Prasanna S Panchamukhi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
Powered by JetHome