public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
To: Abhishek Sagar <sagar.abhishek@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>, Ingo Molnar <mingo@elte.hu>,
	Masami Hiramatsu <mhiramat@redhat.com>,
	jkenisto@us.ibm.com, Thomas Gleixner <tglx@linutronix.de>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/4] kprobes: enable clean usage of get_kprobe
Date: Mon, 23 Jun 2008 09:59:22 +0530	[thread overview]
Message-ID: <20080623042922.GA4730@in.ibm.com> (raw)
In-Reply-To: <485D45C3.9060605@gmail.com>

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;

      reply	other threads:[~2008-06-23  4:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-21 18:17 [PATCH 2/4] kprobes: enable clean usage of get_kprobe Abhishek Sagar
2008-06-23  4:29 ` Ananth N Mavinakayanahalli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080623042922.GA4730@in.ibm.com \
    --to=ananth@in.ibm.com \
    --cc=jkenisto@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhiramat@redhat.com \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=sagar.abhishek@gmail.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox