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

2020-06-23 Thread Liu, Changcheng via lttng-dev
t trace process: trace@trace:~/cc$ sudo lttng create instrument Session instrument created. Traces will be output to /root/lttng-traces/instrument-20200623-222917 trace@trace:~/cc$ sudo lttng enable-channel user_func_trace --userspace UST channel user_func_trace enab

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

2020-06-23 Thread Matthew Khouzam via lttng-dev
ce@trace:~/cc$ sudo lttng create instrument Session instrument created. Traces will be output to /root/lttng-traces/instrument-20200623-222917 trace@trace:~/cc$ sudo lttng enable-channel user_func_trace --userspace UST channel user_func_trace enabled for session instr

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

2020-06-23 Thread Christophe Bédard via lttng-dev
so > ./instrument > >4. start trace process: >trace@trace:~/cc$ sudo lttng create instrument >Session instrument created. >Traces will be output to > /root/lttng-traces/instrument-20200623-222917 > >trace@trace:~/cc$ sudo lttng enable-channel

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

2020-06-23 Thread Liu, Changcheng via lttng-dev
2. build source code: >$ gcc -g -finstrument-functions instrument.c -o instrument > 3. run program: > $ >LD_PRELOAD=/usr/lib/x86_64-linux-gnu/liblttng-ust-cyg-profile.so >./instrument > 4. start trace process: > trace@tra

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 -