Re: [PATCH v3 2.6.39-rc1-tip 23/26] 23: perf: show possible probesin a given executable file or library.

From: Srikar Dronamraju
Date: Wed Apr 06 2011 - 18:50:27 EST


* Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx> [2011-04-04 19:15:11]:

> (2011/04/01 23:37), Srikar Dronamraju wrote:
> > Enhances -F/--funcs option of "perf probe" to list possible probe points in
> > an executable file or library. A new option -e/--exe specifies the path of
> > the executable or library.
>
> I think you'd better use -x for abbr. of --exe, since -e is used for --event
> for other subcommands.

Okay,

>
> And also, it seems this kind of patch should be placed after perf-probe
> uprobe support patch, because without uprobe support, user binary analysis
> is meaningless. (In the result, this introduces -u/--uprobe option without
> uprobe support)
>

Okay, I can do that, Should we do the listing before or after the uprobe
can place a breakpoint is arguable.

>
> > Show last 10 functions in /bin/zsh.
> >
> > # perf probe -F -u -e /bin/zsh | tail
>
> I also can't understand why -u is required even if we have -x for user
> binaries and -m for kernel modules.
>

yes, for the listing we can certainly do without -u option.

--
Thanks and Regards
Srikar
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/