All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: "Chinnathambi, Muthusamy" <muthusamy.chinnathambi@hp.com>,
	"linux-perf-users@vger.kernel.org"
	<linux-perf-users@vger.kernel.org>
Subject: Re: perf probe failed to find symbols -
Date: Mon, 15 Dec 2014 20:52:41 -0700	[thread overview]
Message-ID: <548FAC89.4010502@gmail.com> (raw)
In-Reply-To: <050363D101EB63409B222217F4B02E781EC22E9F@G6W2492.americas.hpqcorp.net>

On 12/15/14 8:18 PM, Chinnathambi, Muthusamy wrote:
> Hi,
>
> I wanted try perf probe, but I am getting the following failure.
>
> [root@force perf_tests]# ./perf probe --add sys_read
> Failed to find symbol sys_read in kernel
>    Error: Failed to add events.

Works for me:
$ perf probe sys_read
Added new event:
   probe:sys_read       (on sys_read)

You can now use it in all perf tools, such as:

	perf record -e probe:sys_read -aR sleep 1

$ uname -r
3.6.11-4.fc16.x86_64

Also, sys_read already has a tracepoint:

   syscalls:sys_enter_read                            [Tracepoint event]
   syscalls:sys_exit_read                             [Tracepoint event]

David

  reply	other threads:[~2014-12-16  3:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-16  3:18 perf probe failed to find symbols - Chinnathambi, Muthusamy
2014-12-16  3:52 ` David Ahern [this message]
2014-12-16 11:46 ` Arnaldo Carvalho de Melo

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=548FAC89.4010502@gmail.com \
    --to=dsahern@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=muthusamy.chinnathambi@hp.com \
    /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 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.