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

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] 52+ messages in thread

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

Thread overview: 52+ 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 ` Michael Ellerman
2007-06-26  1:48 ` Michael Ellerman
2007-06-26  1:48 ` Michael Ellerman
2007-06-26  1:48 ` [PATCH 2/3] Remove JPROBE_ENTRY() Michael Ellerman
2007-06-26  1:48   ` Michael Ellerman
2007-06-26  1:48   ` Michael Ellerman
2007-06-26  1:48   ` Michael Ellerman
2007-06-26  5:52   ` Christoph Hellwig
2007-06-26  5:52     ` Christoph Hellwig
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  1:48   ` Michael Ellerman
2007-06-26  1:48   ` Michael Ellerman
2007-06-26  1:48   ` Michael Ellerman
2007-06-26  2:00   ` Andrew Morton
2007-06-26  2:00     ` Andrew Morton
2007-06-26  2:00     ` Andrew Morton
2007-06-26  2:00     ` Andrew Morton
2007-06-26  2:06     ` Michael Ellerman
2007-06-26  2:06       ` Michael Ellerman
2007-06-26  2:06       ` Michael Ellerman
2007-06-26  2:24       ` [PATCH 1/1] Add a prototype for arch_deref_entry_point() Michael Ellerman
2007-06-26  5:53   ` [PATCH 3/3] Make jprobes a little safer for users Christoph Hellwig
2007-06-26  5:53     ` Christoph Hellwig
2007-06-26  5:53     ` Christoph Hellwig
2007-06-26  6:03     ` Michael Ellerman
2007-06-26  6:03       ` Michael Ellerman
2007-06-26  6:03       ` Michael Ellerman
2007-06-26  6:51       ` Andrew Morton
2007-06-26  6:51         ` Andrew Morton
2007-06-26  6:51         ` Andrew Morton
2007-06-26  6:19   ` Abhishek Sagar
2007-06-26  6:31     ` Abhishek Sagar
2007-06-26  6:19     ` Abhishek Sagar
2007-06-26  6:34     ` Michael Ellerman
2007-06-26  6:34       ` Michael Ellerman
2007-06-26  6:34       ` Michael Ellerman
2007-06-26  7:54       ` Abhishek Sagar
2007-06-26  7:55         ` Abhishek Sagar
2007-06-26  7:54         ` Abhishek Sagar
2007-06-26  3:48 ` [PATCH 1/3] Make struct jprobe.entry a void * Ananth N Mavinakayanahalli
2007-06-26  3:51   ` Ananth N Mavinakayanahalli
2007-06-26  3:51   ` Ananth N Mavinakayanahalli
2007-06-26  3:51   ` Ananth N Mavinakayanahalli
2007-06-26  3:56 ` Ananth N Mavinakayanahalli
2007-06-26  3:59   ` Ananth N Mavinakayanahalli
2007-06-26  3:59   ` Ananth N Mavinakayanahalli
2007-06-26  3:59   ` Ananth N Mavinakayanahalli
2007-06-26  4:35   ` Michael Ellerman
2007-06-26  4:35     ` Michael Ellerman
2007-06-26  4:35     ` Michael Ellerman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.