I'd like to be able to monitor some linux system events (scheduling : cpu-migration, thread scheduling...) in my application written in C.
Is there a way to plug my application on kernel event like perf tool (https://perf.wiki.kernel.org/index.php/Main_Page) would do ?