<div dir="ltr">I am trying to collect a trace for visualizing callstack using lttng_ust_cyg_profile.<br><br>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.<br><br>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:<div>1. lttng-track to only track one process<br></div><div><br></div><div>2. Only enableĀ lttng_ust_cyg_profile:* events</div><div><br></div><div>3. Increase the subbuffer size:</div><div>lttng enable-channel --userspace --buffers-pid --subbuf-size=2M --num-subbuf=2 mychannel</div><div>Using this option is very flaky however. It crashes lttng-sessiond.</div><div><br></div><div>Any other ideas to filter events?</div><div><br></div><div>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 lttng_ust_cyg_profile?</div><div><br></div></div>