I am new to tracing in Linux. I have a multi-threaded C++ user application. The threads wake up periodically (by o/s timer) and sleep after doing some processing. I want to visualise:
1) When the threads start and stop running
2) Which cores the threads are running on.
I have installed lttng and Trace Compass onto an Ubuntu 14.04 LTS machine. But I don't know how to use these tools to achieve my objective.
I have read the following lttng doc section:
http://lttng.org/docs/#doc-tracing-your-own-user-application
In order to collect my trace, must I define custom lttng tracepoint definitions ( in a tracepoint provider header file ), and insert tracepoints into my user application, or is there a simpler way of achieving my goal?
Best regards
David