From: Franck Bui-Huu <vagabon.xyz@gmail.com>
To: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
lkml <linux-kernel@vger.kernel.org>,
2nddept-manager@sdl.hitachi.co.jp
Subject: Re: [PATCH] perf-probe: make "perf-probe -L <function>" display the absolute path and absolute line number
Date: Fri, 14 Jan 2011 20:53:59 +0100 [thread overview]
Message-ID: <m3aaj3ntwo.fsf@gmail.com> (raw)
In-Reply-To: <4D30267B.9080406@hitachi.com> (Masami Hiramatsu's message of "Fri, 14 Jan 2011 19:33:31 +0900")
Hi Masami,
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> writes:
> (2011/01/14 18:03), Franck Bui-Huu wrote:
>> But if you think it should be used to hint for a probe point syntax,
>> (you'll probably use copy & paste since it uses absolute path name),
>
> Not only for copy&paste, but also for avoiding confusion.
> Please imagine that user see this output.
>
> </usr/src/debug/kernel-2.6.35.fc14/linux-2.6.35.x86_64/kernel/sched.c:3823>
> 10 rq = cpu_rq(cpu);
> 11 rcu_note_context_switch(cpu);
>
> "Why the definition line number and starting line number are different?"
> "How I can put a probe? sched.c:3823 ... + 10??"
No because if you see relative line number, then the user had used the
following command:
$ perf probe -L schedule
so I would assume that his next add command would still use a function
name:
$ perf probe schedule:10
>
> "Or, it's just buggy! report it!"
>
> I don't want this.
>
>> then this patch is wrong.
>
> Yeah, but just a _bit_. Basically, I agree with your idea of showing
> actual path of the function, because, indeed, perf-probe just shows
> the first one even if there are many same-name functions.
>
> So, here, I had suggested an enhancement idea;
>
> $ perf probe -L schedule:0-1
> <schedule@/usr/src/debug/kernel-2.6.35.fc14/linux-2.6.35.x86_64/kernel/sched.c:0>
> 0 asmlinkage void __sched schedule(void)
> 1 {
>
> This is acceptable, because it shows which function you see and
> it also gives you how you can specify a probe point on a function
> line.
I can understand your point, but I'm currently not seeing it as a hint
for a probe point syntax.
But you're a far more experienced user than I am so you're probably
right.
Thanks
--
Franck
prev parent reply other threads:[~2011-01-14 19:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-13 10:20 Franck Bui-Huu
2011-01-13 11:03 ` Masami Hiramatsu
2011-01-13 19:42 ` Franck Bui-Huu
2011-01-14 3:22 ` Masami Hiramatsu
2011-01-14 9:03 ` Franck Bui-Huu
2011-01-14 10:08 ` Masami Hiramatsu
2011-01-14 10:33 ` Masami Hiramatsu
2011-01-14 19:53 ` Franck Bui-Huu [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=m3aaj3ntwo.fsf@gmail.com \
--to=vagabon.xyz@gmail.com \
--cc=2nddept-manager@sdl.hitachi.co.jp \
--cc=acme@ghostprotocols.net \
--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
all inboxes | Powered by JetHome®