- Subject: How to measure time spent in context switch
- From: Manavendra Nath Manav <mnm.kernel@xxxxxxxxx>
- Date: Tue, 17 Jul 2012 00:58:52 +0530
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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
[Newbies FAQ]
[Linux Kernel Development]
[IETF Annouce]
[Git]
[Networking]
[Security]
[Bugtraq]
[Photo]
[Yosemite]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux Networking]
[Linux RAID]
[Linux SCSI]
[Linux ACPI]