diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2007-07-19 04:48:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:44 -0400 |
commit | 9e367d859297b9377d65574f538cf52730e9eda8 (patch) | |
tree | c7d4e7c3d1521810981d1623c5100a44600c603f /Documentation/kprobes.txt | |
parent | 81eae375eceba481ca4c605d42913871f093f6d5 (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/kprobes.txt')
-rw-r--r-- | Documentation/kprobes.txt | 8 |
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, | |||
247 | fastcall, or anything else that affects how args are passed, the | 247 | fastcall, or anything else that affects how args are passed, the |
248 | handler's declaration must match. | 248 | handler's declaration must match. |
249 | 249 | ||
250 | NOTE: A macro JPROBE_ENTRY is provided to handle architecture-specific | ||
251 | aliasing of jp->entry. In the interest of portability, it is advised | ||
252 | to use: | ||
253 | |||
254 | jp->entry = JPROBE_ENTRY(handler); | ||
255 | |||
256 | register_jprobe() returns 0 on success, or a negative errno otherwise. | 250 | register_jprobe() returns 0 on success, or a negative errno otherwise. |
257 | 251 | ||
258 | 4.3 register_kretprobe | 252 | 4.3 register_kretprobe |
@@ -518,7 +512,7 @@ long jdo_fork(unsigned long clone_flags, unsigned long stack_start, | |||
518 | } | 512 | } |
519 | 513 | ||
520 | static struct jprobe my_jprobe = { | 514 | static struct jprobe my_jprobe = { |
521 | .entry = JPROBE_ENTRY(jdo_fork) | 515 | .entry = jdo_fork |
522 | }; | 516 | }; |
523 | 517 | ||
524 | static int __init jprobe_init(void) | 518 | static int __init jprobe_init(void) |