This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH -tip 8/8] perf probe: Support --line option to show probable source-code lines
- From: Masami Hiramatsu <mhiramat at redhat dot com>
- To: Masami Hiramatsu <mhiramat at redhat dot com>
- Cc: Ingo Molnar <mingo at elte dot hu>, lkml <linux-kernel at vger dot kernel dot org>, Frederic Weisbecker <fweisbec at gmail dot com>, Arnaldo Carvalho de Melo <acme at redhat dot com>, systemtap <systemtap at sources dot redhat dot com>, DLE <dle-develop at lists dot sourceforge dot net>, Paul Mackerras <paulus at samba dot org>, Peter Zijlstra <peterz at infradead dot org>, Mike Galbraith <efault at gmx dot de>
- Date: Wed, 06 Jan 2010 09:33:28 -0500
- Subject: Re: [PATCH -tip 8/8] perf probe: Support --line option to show probable source-code lines
- References: <20100105224634.19431.3259.stgit@dhcp-100-2-132.bos.redhat.com> <20100105224730.19431.55102.stgit@dhcp-100-2-132.bos.redhat.com>
Masami Hiramatsu wrote:
> Add --line option to support showing probable source-code lines.
>
> perf probe --line SRC:LN[-LN|+NUM]
> or
> perf probe --line FUNC[:LN[-LN|+NUM]]
>
> This option shows source-code with line number if the line can be
> probed. Lines without line number (and blue color) means that the
> line can not be probed, because debuginfo doesn't have the
> information of those lines.
>
> The argument specifies the range of lines, "source.c:100-120" shows
> lines between 100th to l20th in source.c file. And "func:10+20"
> shows 20 lines from 10th line of func function.
Oops, I found this will conflict with Arnaldo's patch.
I'll update this on his patches.
Thank you,
--
Masami Hiramatsu
Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division
e-mail: mhiramat@redhat.com