linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [S390] add arch_trampoline_kprobe.
@ 2007-04-20 11:08 Martin Schwidefsky
  2007-04-20 13:09 ` Ananth N Mavinakayanahalli
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Schwidefsky @ 2007-04-20 11:08 UTC (permalink / raw)
  To: linux-kernel, linux-s390; +Cc: akpm, srinivasa, ananth

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

Add the missing arch_trampoline_kprobe function for s390 required by
kprobes-the-on-off-knob-thru-debugfs-updated.patch.

Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Srinivasa DS <srinivasa@in.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
---

 arch/s390/kernel/kprobes.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -urpN linux-2.6/arch/s390/kernel/kprobes.c linux-2.6-patched/arch/s390/kernel/kprobes.c
--- linux-2.6/arch/s390/kernel/kprobes.c	2007-04-19 17:12:40.000000000 +0200
+++ linux-2.6-patched/arch/s390/kernel/kprobes.c	2007-04-19 17:12:09.000000000 +0200
@@ -658,6 +658,13 @@ static struct kprobe trampoline_p = {
 	.pre_handler = trampoline_probe_handler
 };
 
+int __kprobes arch_trampoline_kprobe(struct kprobe *p)
+{
+	if (p->addr == (kprobe_opcode_t *)&kretprobe_trampoline)
+		return 1;
+	return 0;
+}
+
 int __init arch_init_kprobes(void)
 {
 	return register_kprobe(&trampoline_p);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [S390] add arch_trampoline_kprobe.
  2007-04-20 11:08 [S390] add arch_trampoline_kprobe Martin Schwidefsky
@ 2007-04-20 13:09 ` Ananth N Mavinakayanahalli
  2007-04-20 13:13   ` Martin Schwidefsky
  0 siblings, 1 reply; 3+ messages in thread
From: Ananth N Mavinakayanahalli @ 2007-04-20 13:09 UTC (permalink / raw)
  To: Martin Schwidefsky; +Cc: linux-kernel, linux-s390, akpm, srinivasa

On Fri, Apr 20, 2007 at 01:08:42PM +0200, Martin Schwidefsky wrote:
> From: Martin Schwidefsky <schwidefsky@de.ibm.com>
> 
> Add the missing arch_trampoline_kprobe function for s390 required by
> kprobes-the-on-off-knob-thru-debugfs-updated.patch.

Martin,

Cornelia provided this patch sometime earlier
(http://marc.info/?l=linux-kernel&m=117620748921086&w=2). Andrew has
picked it up into -mm.

Ananth

> 
> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
> Cc: Srinivasa DS <srinivasa@in.ibm.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
> ---
> 
>  arch/s390/kernel/kprobes.c |    7 +++++++
>  1 files changed, 7 insertions(+)
> 
> diff -urpN linux-2.6/arch/s390/kernel/kprobes.c linux-2.6-patched/arch/s390/kernel/kprobes.c
> --- linux-2.6/arch/s390/kernel/kprobes.c	2007-04-19 17:12:40.000000000 +0200
> +++ linux-2.6-patched/arch/s390/kernel/kprobes.c	2007-04-19 17:12:09.000000000 +0200
> @@ -658,6 +658,13 @@ static struct kprobe trampoline_p = {
>  	.pre_handler = trampoline_probe_handler
>  };
> 
> +int __kprobes arch_trampoline_kprobe(struct kprobe *p)
> +{
> +	if (p->addr == (kprobe_opcode_t *)&kretprobe_trampoline)
> +		return 1;
> +	return 0;
> +}
> +
>  int __init arch_init_kprobes(void)
>  {
>  	return register_kprobe(&trampoline_p);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [S390] add arch_trampoline_kprobe.
  2007-04-20 13:09 ` Ananth N Mavinakayanahalli
@ 2007-04-20 13:13   ` Martin Schwidefsky
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Schwidefsky @ 2007-04-20 13:13 UTC (permalink / raw)
  To: ananth; +Cc: linux-kernel, linux-s390, akpm, srinivasa

On Fri, 2007-04-20 at 18:39 +0530, Ananth N Mavinakayanahalli wrote:
> Cornelia provided this patch sometime earlier
> (http://marc.info/?l=linux-kernel&m=117620748921086&w=2). Andrew has
> picked it up into -mm.

Ok, good. The latest version of -mm on kernel.org did not have it yet.

-- 
blue skies,              IBM Deutschland Entwicklung GmbH
   Martin                Vorsitzender des Aufsichtsrats: Johann Weihen
                         Geschäftsführung: Herbert Kircher
Martin Schwidefsky       Sitz der Gesellschaft: Böblingen
Linux on zSeries         Registergericht: Amtsgericht Stuttgart,
   Development           HRB 243294

"Reality continues to ruin my life." - Calvin.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-20 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 11:08 [S390] add arch_trampoline_kprobe Martin Schwidefsky
2007-04-20 13:09 ` Ananth N Mavinakayanahalli
2007-04-20 13:13   ` Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).