public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: problems with perf probe and system libraries
Date: Mon, 29 Dec 2014 21:21:51 -0700	[thread overview]
Message-ID: <54A2285F.3040200@gmail.com> (raw)

Hi Masami:

I have been looking at perf-probe again and having a number of problems 
with top of tree.

Here's the first one I have isolated:

$ perf probe -x /lib64/libc-2.18.so -a 'malloc  size=%di'
Probe point 'malloc' not found.
   Error: Failed to add events.

$ perf probe -x /lib64/libc-2.18.so -F | grep malloc
malloc
malloc@plt
malloc_atfork
malloc_check
malloc_consolidate
malloc_hook_ini
malloc_info
malloc_printerr
mallochook
ptmalloc_init
ptmalloc_init.part.8
ptmalloc_lock_all
ptmalloc_unlock_all
ptmalloc_unlock_all2
tr_mallochook

$ perf probe -x /lib64/libc-2.18.so -a 'malloc=malloc size=%di'
Probe point 'malloc' not found.
   Error: Failed to add events.

A year ago (v3.12) this worked fine so I did a git bisect which points to:

commit fb7345bbf7fad9bf72ef63a19c707970b9685812
Author: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Date:   Thu Dec 26 05:41:53 2013 +0000

     perf probe: Support basic dwarf-based operations on uprobe events

I have tried top of tree on Fedora 16, 18 and 20 with a variety of 
kernels - and a variety of results. Reverting to 
8a613d40e389b723fd5889ac8d4033ed4030be31 which is the commit before this 
one and it works again.

David

             reply	other threads:[~2014-12-30  4:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-30  4:21 David Ahern [this message]
2014-12-30 22:18 ` problems with perf probe and system libraries Masami Hiramatsu
2014-12-31  6:27 ` [PATCH] [BUGFIX] perf-probe: Fix to fall back to find probe point in symbols Masami Hiramatsu
2014-12-31  8:02   ` Namhyung Kim
2015-01-04  4:41     ` Masami Hiramatsu
2015-01-08  9:52   ` [tip:perf/urgent] perf probe: " tip-bot for Masami Hiramatsu

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=54A2285F.3040200@gmail.com \
    --to=dsahern@gmail.com \
    --cc=acme@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masami.hiramatsu.pt@hitachi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox