[lttng-dev] lttng_ust_cyg_profile

Alok Priyadarshi alokpr at gmail.com
Thu Mar 22 14:31:41 EDT 2018

I am trying to collect a trace for visualizing callstack using

Even though I have compiled a single source file with
-finstrument-functions, I guess it is producing too many events to
considerably slow down the instrumented process and cause lost events.

I am using clang, which does not support
-finstrument-functions-exclude-file-list. Is there any way to
filter lttng_ust_cyg_profile events before they are written to the trace? I
have tried various things:
1. lttng-track to only track one process

2. Only enable lttng_ust_cyg_profile:* events

3. Increase the subbuffer size:
lttng enable-channel --userspace --buffers-pid --subbuf-size=2M
--num-subbuf=2 mychannel
Using this option is very flaky however. It crashes lttng-sessiond.

Any other ideas to filter events?

I am also open to explicitly adding tracepoints to the functions I care
about. But I am not sure how they can be visualized in trace-compass
callstack view. I guess it only supports tracepoints generated by
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20180322/609b3428/attachment.html>

More information about the lttng-dev mailing list