Re: [PATCH 2/2] perf probe: Allow user to specify address withinexecutable

From: Masami Hiramatsu
Date: Mon Dec 02 2013 - 01:16:11 EST


(2013/12/02 9:07), David Ahern wrote:
> Allow user to specify an address within an executable. This is useful, for
> example, in probing local functions. If the function name begins with 0x
> then try to convert the supplied name to an address. If succuessful then
> treat the function name as the address within the executable to be probed.

Hmm, IMHO, this kind of functionality is only good for debugging.
In that case, you should use uprobe_events interface directly.

I recommend you to try enabing dwarf support in user space.
Perf probe is a user-friendly interface of dynamic events.

Thank you,


--
Masami HIRAMATSU
IT Management Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@xxxxxxxxxxx


--
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/