Gathering thread scheduling information on Linux

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?

+7
profiling linux scheduler tracing
source share
1 answer

The primary Linux tool is a profiling tool supported by the general purpose kernel. Among other things, it can record events, including task scheduling events.

+3
source share

All Articles