[lttng-dev] get function names with lttng-ust-cyg-profile
Christophe Bédard
bedard.christophe at gmail.com
Fri Jun 26 10:19:38 EDT 2020
Hi,
On Tue, 23 Jun 2020 at 21:45, Liu, Changcheng <changcheng.liu at intel.com>
wrote:
> Do you know how to print the call site function_name/offset?
> For example:
> 11 getchar();
> 12
> 13 x = add3(x);
> Currently, it only shows call_site address instead of function name with
> offset.
>
> func_entry: { cpu_id = 2 }, { ip = 0x55CFA4F5C1EE, debug_info = { bin =
> "instrument+0x11ee", func = "main+0", src = "instrument.c:7" }, vpid = 8523
> }, { addr = 0x55CFA4F5C1EE, call_site = 0x7F27C4B1E0B3 }
> func_entry: { cpu_id = 1 }, { ip = 0x55CFA4F5C1A9, debug_info = { bin =
> "instrument+0x11a9", func = "add3+0", src = "instrument.c:3" }, vpid = 8523
> }, { addr = 0x55CFA4F5C1A9, call_site = 0x55CFA4F5C237 }
> func_exit: { cpu_id = 1 }, { ip = 0x55CFA4F5C1A9, debug_info = { bin =
> "instrument+0x11a9", func = "add3+0", src = "instrument.c:3" }, vpid = 8523
> }, { addr = 0x55CFA4F5C1A9, call_site = 0x55CFA4F5C237 }
> func_exit: { cpu_id = 1 }, { ip = 0x55CFA4F5C1EE, debug_info = { bin =
> "instrument+0x11ee", func = "main+0", src = "instrument.c:7" }, vpid = 8523
> }, { addr = 0x55CFA4F5C1EE, call_site = 0x7F27C4B1E0B3 }
>
Maybe I'm missing something, but isn't it right here? E.g.
debug_info = { bin = "instrument+0x11ee", func = "main+0", src =
> "instrument.c:7" }
>
Otherwise, I don't think babeltrace can provide any more information.
Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200626/96849681/attachment.htm>
More information about the lttng-dev
mailing list