thread context switching
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Tue Mar 18 12:54:36 EDT 2014
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?
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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140318/400ecba8/attachment.bin
More information about the Kernelnewbies
mailing list