On Tue, Mar 18, 2014 at 10:24 PM, <Valdis.Kletnieks@xxxxxx> wrote: > On Tue, 18 Mar 2014 19:01:50 +0300, Nada Saif said: > >> I want to measure thread context switching in c, How I can do that? Looks suspiciously like an interview-type question? :) > > What are you trying to measure, exactly, and why? The answer depends on > the details of the question. > > However, my first go-to solution would see if 'perf' can cough up the > numbers you need. It's able to slurp out all sorts of timing data from > the kernel (though some data and trace points require CONFIG_* variables > to be set in the kernel build). > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@xxxxxxxxxxxxxxxxx > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies