From: Ingo Molnar <mingo@elte.hu>
To: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>,
lkml <linux-kernel@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>,
Jim Keniston <jkenisto@us.ibm.com>,
Ananth N Mavinakayanahalli <ananth@in.ibm.com>,
Christoph Hellwig <hch@infradead.org>,
"Frank Ch. Eigler" <fche@redhat.com>,
Jason Baron <jbaron@redhat.com>,
"K.Prasad" <prasad@linux.vnet.ibm.com>,
Peter Zijlstra <peterz@infradead.org>,
Srikar Dronamraju <srikar@linux.vnet.ibm.com>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
systemtap <systemtap@sources.redhat.com>,
DLE <dle-develop@lists.sourceforge.net>
Subject: Re: [PATCH -tip 0/8] perf-probe updates
Date: Wed, 9 Dec 2009 09:43:41 +0100 [thread overview]
Message-ID: <20091209084341.GA21333@elte.hu> (raw)
In-Reply-To: <20091209072220.GA4328@elte.hu>
* Ingo Molnar <mingo@elte.hu> wrote:
> One hickup is that -d/--del does not appear to be working yet:
>
> # perf probe -l
> probe:schedule (on schedule)
>
> # perf probe -d probe:schedule
> Fatal: Failed to write event: Invalid argument
Ah, that was with an older kernel - a freshly booted kernel with
delete-probe syntax worked fine.
There's another small hickup i had - when i typoed 'perf probe -', it
gave me:
# perf probe -
No dwarf info found in the vmlinux - please rebuild with CONFIG_DEBUG_INFO.
An error occurred in debuginfo analysis. Try to use symbols.
Fatal: Failed to write event: Invalid argument
Similar thing happens if i try to probe a non-existent symbol:
# perf probe test
No dwarf info found in the vmlinux - please rebuild with CONFIG_DEBUG_INFO.
An error occurred in debuginfo analysis. Try to use symbols.
Fatal: Failed to write event: Invalid argument
I think we should print something more helpful, such as:
# perf probe test
Fatal: Kernel symbol 'test' not found - probe not added.
the debuginfo printout is not helpful in this case - we should fall back
to symbols silently, unless the nature of the error indicates that we
fail _because_ there's no debuginfo.
Here the failure was because the symbol does not exist.
There's similar problems in most other failure cases. Trying to remove a
non-existent probe gives:
# perf probe -d test
Warning: event "probe:test" is not found.
It should say something like:
# perf probe -d test
Info: event "probe:test" does not exist, could not remove it.
Also, it's possible to add multiple probes to the same function, using
'perf probe schedule' + 'perf probe schedule', etc. While in general it
makes sense to allow it, by default we should refuse the second,
identical probe on the symbol - and add a -f/--force option to force
duplicate probes. I.e. the second probe should print:
# perf probe schedule
Info: event "probe:schedule" already exists. (Use -f to force a duplicate.)
etc. Please try out various sensible and also less sensible options of
this tool and try to make it break - and see whether the behavior is
intuitive and obvious to users - whether the messages are consistent,
etc. etc.
Ingo
next prev parent reply other threads:[~2009-12-09 8:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 22:02 [PATCH -tip 0/8] perf-probe updates Masami Hiramatsu
2009-12-08 22:02 ` [PATCH -tip 1/8] perf probe: Change event list format Masami Hiramatsu
2009-12-09 7:24 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-08 22:02 ` [PATCH -tip 2/8] perf probe: Change probe-added message more user-friendly Masami Hiramatsu
2009-12-09 7:25 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-08 22:02 ` [PATCH -tip 3/8] perf probe: Fix add-probe command syntax without --add option Masami Hiramatsu
2009-12-09 7:25 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-08 22:03 ` [PATCH -tip 4/8] perf probe: Remove event suffix number _0 Masami Hiramatsu
2009-12-09 7:25 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-08 22:03 ` [PATCH -tip 5/8] perf probe: Support vmlinux on cwd by default Masami Hiramatsu
2009-12-09 7:25 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-08 22:03 ` [PATCH -tip 6/8] trace-kprobe: Support delete probe syntax Masami Hiramatsu
2009-12-09 7:26 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-08 22:03 ` [PATCH -tip 7/8] perf probe: Support --del option Masami Hiramatsu
2009-12-09 7:26 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-08 22:03 ` [PATCH -tip 8/8] perf probe: Update perf-probe document Masami Hiramatsu
2009-12-09 7:26 ` [tip:perf/urgent] " tip-bot for Masami Hiramatsu
2009-12-09 7:22 ` [PATCH -tip 0/8] perf-probe updates Ingo Molnar
2009-12-09 8:43 ` Ingo Molnar [this message]
2009-12-09 17:36 ` Masami Hiramatsu
2009-12-09 21:41 ` Masami Hiramatsu
2009-12-11 20:51 ` Arnaldo Carvalho de Melo
2009-12-11 21:15 ` Masami Hiramatsu
2009-12-11 21:29 ` Arnaldo Carvalho de Melo
-- strict thread matches above, loose matches on Subject: below --
2010-01-05 22:46 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=20091209084341.GA21333@elte.hu \
--to=mingo@elte.hu \
--cc=acme@redhat.com \
--cc=ananth@in.ibm.com \
--cc=dle-develop@lists.sourceforge.net \
--cc=fche@redhat.com \
--cc=fweisbec@gmail.com \
--cc=hch@infradead.org \
--cc=jbaron@redhat.com \
--cc=jkenisto@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mhiramat@redhat.com \
--cc=peterz@infradead.org \
--cc=prasad@linux.vnet.ibm.com \
--cc=rostedt@goodmis.org \
--cc=srikar@linux.vnet.ibm.com \
--cc=systemtap@sources.redhat.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.