Thread (5 messages) flat view 5 messages, 3 authors, 2012-07-17

How to measure time spent in context switch

From: Manavendra Nath Manav <hidden>
Date: 2012-07-16 19:28:52

How to measure time spent in context switch in Linux i.e. the time the
application stays suspended while the kernel is doing something else. I
don't want to use any profiling tools. What approach should I take to write
my own C code, which can also run as kernel module if required, to measure
time spent accurately. Will it also require to modify the scheduler code?
Does /proc gives any statistics in this regard?

Ref:
http://stackoverflow.com/questions/2368384/write-a-c-program-to-measure-time-spent-in-context-switch-in-linux-os

--
Manavendra Nath Manav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120717/bee032ab/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help