lkml.org 
[lkml]   [2008]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] kprobes: enable clean usage of get_kprobe
On Sat, Jun 21, 2008 at 11:47:39PM +0530, Abhishek Sagar wrote:
> Allow clean use of get_kprobe() outside of core kprobe code. Ftrace makes use
> of get_kprobe to identify probes installed on mcount call-sites.
>
> Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com>

Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>

> ---
>
> diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h
> index 1036631..04a3556 100644
> --- a/include/linux/kprobes.h
> +++ b/include/linux/kprobes.h
> @@ -259,6 +259,10 @@ void recycle_rp_inst(struct kretprobe_instance *ri, struct hlist_head *head);
> struct jprobe;
> struct kretprobe;
>
> +static inline struct kprobe *get_kprobe(void *addr)
> +{
> + return NULL;
> +}
> static inline struct kprobe *kprobe_running(void)
> {
> return NULL;


\
 
 \ /
  Last update: 2008-06-23 06:33    [W:0.048 / U:0.960 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site