I want to collect information about when my threads are scheduled (and scheduled) and on which processors, on Linux. I am happy to collect information and save it in a file for offline analysis later, since I need to combine planning information with other event sources generated by my code. Ideally, the information will be collected by the program itself, since I plan to use all the kernels on the machine most of the time, and using an external process to perform the selection will interfere with the execution that I want to measure.
Is this possible in Linux? What are the options?
profiling linux scheduler tracing
Simon marlow
source share