linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Make struct jprobe.entry a void *
@ 2007-06-26  1:48 Michael Ellerman
  2007-06-26  1:48 ` [PATCH 2/3] Remove JPROBE_ENTRY() Michael Ellerman
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Michael Ellerman @ 2007-06-26  1:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arch, Andrew Morton, linux-ia64, anil.s.keshavamurthy,
	linuxppc-dev, Christoph Hellwig

Currently jprobe.entry is a kprobe_opcode_t *, but that's a lie. On some
platforms it doesn't point to an opcode at all, it points to a function
descriptor.

It's really a pointer to something that the arch code can turn into a
function entry point. And that's what actually happens, none of the
generic code ever looks at jprobe.entry, it's only ever dereferenced
by arch code.

So just make it a void *.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---

It isn't obvious where kprobes patches should go, is anyone "the" maintainer?
Instead I've just sent this to everyone who'd touched the code lately, or
might be otherwise interested.


 include/linux/kprobes.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h
index 23adf60..f4e53b7 100644
--- a/include/linux/kprobes.h
+++ b/include/linux/kprobes.h
@@ -116,7 +116,7 @@ struct kprobe {
  */
 struct jprobe {
 	struct kprobe kp;
-	kprobe_opcode_t *entry;	/* probe handling code to jump to */
+	void *entry;	/* probe handling code to jump to */
 };
 
 DECLARE_PER_CPU(struct kprobe *, current_kprobe);
-- 
1.5.1.3.g7a33b

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

end of thread, other threads:[~2007-06-26  7:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-26  1:48 [PATCH 1/3] Make struct jprobe.entry a void * Michael Ellerman
2007-06-26  1:48 ` [PATCH 2/3] Remove JPROBE_ENTRY() Michael Ellerman
2007-06-26  5:52   ` Christoph Hellwig
2007-06-26  1:48 ` [PATCH 3/3] Make jprobes a little safer for users Michael Ellerman
2007-06-26  2:00   ` Andrew Morton
2007-06-26  2:06     ` Michael Ellerman
2007-06-26  5:53   ` Christoph Hellwig
2007-06-26  6:03     ` Michael Ellerman
2007-06-26  6:51       ` Andrew Morton
2007-06-26  6:19   ` Abhishek Sagar
2007-06-26  6:34     ` Michael Ellerman
2007-06-26  7:54       ` Abhishek Sagar
2007-06-26  3:51 ` [PATCH 1/3] Make struct jprobe.entry a void * Ananth N Mavinakayanahalli
2007-06-26  3:59 ` Ananth N Mavinakayanahalli
2007-06-26  4:35   ` Michael Ellerman

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).