Re: [lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-26 Thread Liu, Changcheng via lttng-dev
Hi Christophe, I've checked lots of examples about func_entry/exit. It seems all the address are the linked address. However, my result shows that they're the loaded running address. Do you have some suggestions to check it further? B.R. Changcheng On 22:22 Fri 26 Jun, Liu, Chang

Re: [lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-26 Thread Liu, Changcheng via lttng-dev
On 10:19 Fri 26 Jun, Christophe Bédard wrote: >Hi, >On Tue, 23 Jun 2020 at 21:45, Liu, Changcheng ><[1]changcheng@intel.com> wrote: > > Do you know how to print the call site function_name/offset? > For example: > 11 getchar(); > 12 >

Re: [lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-26 Thread Christophe Bédard via lttng-dev
Hi, On Tue, 23 Jun 2020 at 21:45, Liu, Changcheng 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 > o

Re: [lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-23 Thread Liu, Changcheng via lttng-dev
On 12:52 Tue 23 Jun, Christophe Bédard wrote: >Hi, > > Babeltrace is doing exactly what it should as far as I know. > >yes, but babeltrace can provide the information if: >* ip and vpid contexts are enabled (for userspace), e.g. > >$ lttng add-context --userspace --type=ip -

Re: [lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-23 Thread Liu, Changcheng via lttng-dev
Liu, Changcheng via lttng-dev <[4]lttng-dev@lists.lttng.org> >Sent: Tuesday, June 23, 2020 10:37 AM >To: [5]lttng-dev@lists.lttng.org <[6]lttng-dev@lists.lttng.org> >Cc: [7]changcheng@intel.com <[8]changcheng@intel.com> >Subject: [lttng-dev] get funct

Re: [lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-23 Thread Christophe Bédard via lttng-dev
g via lttng-dev > *Sent:* Tuesday, June 23, 2020 10:37 AM > *To:* lttng-dev@lists.lttng.org > *Cc:* changcheng....@intel.com > *Subject:* [lttng-dev] get function names with lttng-ust-cyg-profile > > Hi all, >I'm trying to use lttng-ust-cyg-profile to trace program. >Does

Re: [lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-23 Thread Matthew Khouzam via lttng-dev
nformation. Hope that helps. Matthew From: lttng-dev on behalf of Liu, Changcheng via lttng-dev Sent: Tuesday, June 23, 2020 10:37 AM To: lttng-dev@lists.lttng.org Cc: changcheng@intel.com Subject: [lttng-dev] get function names with lttng-ust-cyg-profi

[lttng-dev] get function names with lttng-ust-cyg-profile

2020-06-23 Thread Liu, Changcheng via lttng-dev
Hi all, I'm trying to use lttng-ust-cyg-profile to trace program. Does anyone know how to get function names and offset through lttng-ust-cyg-profile? In below example, the babeltrace could only get the function entry/exit value. 1. Source program: instrument.c 1 #include