aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-07-19 04:48:10 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:44 -0400
commit9e367d859297b9377d65574f538cf52730e9eda8 (patch)
treec7d4e7c3d1521810981d1623c5100a44600c603f /Documentation
parent81eae375eceba481ca4c605d42913871f093f6d5 (diff)
jprobes: remove JPROBE_ENTRY()
AFAICT now that jprobe.entry is a void *, JPROBE_ENTRY doesn't do anything useful - so remove it .. I've left a do-nothing version so that out-of-tree jprobes code will still compile without modifications. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Cc: Prasanna S Panchamukhi <prasanna@in.ibm.com> Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/kprobes.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt
index da5404ab7569..cb12ae175aa2 100644
--- a/Documentation/kprobes.txt
+++ b/Documentation/kprobes.txt
@@ -247,12 +247,6 @@ control to Kprobes.) If the probed function is declared asmlinkage,
247fastcall, or anything else that affects how args are passed, the 247fastcall, or anything else that affects how args are passed, the
248handler's declaration must match. 248handler's declaration must match.
249 249
250NOTE: A macro JPROBE_ENTRY is provided to handle architecture-specific
251aliasing of jp->entry. In the interest of portability, it is advised
252to use:
253
254 jp->entry = JPROBE_ENTRY(handler);
255
256register_jprobe() returns 0 on success, or a negative errno otherwise. 250register_jprobe() returns 0 on success, or a negative errno otherwise.
257 251
2584.3 register_kretprobe 2524.3 register_kretprobe
@@ -518,7 +512,7 @@ long jdo_fork(unsigned long clone_flags, unsigned long stack_start,
518} 512}
519 513
520static struct jprobe my_jprobe = { 514static struct jprobe my_jprobe = {
521 .entry = JPROBE_ENTRY(jdo_fork) 515 .entry = jdo_fork
522}; 516};
523 517
524static int __init jprobe_init(void) 518static int __init jprobe_init(void)