[LITMUS^RT] Number of Context Switch ?

Björn Brandenburg bbb at mpi-sws.org
Sat Jun 7 09:37:44 CEST 2014


On 07 Jun 2014, at 09:19, Sanjib Das <cnt.sanjib at googlemail.com> wrote:
> Using ft_tools we can get the context switching time (CXS_START, CXS_END: Used to record the time spent to make a context switch. ), but is there any trick to get the number of preemption too ?

There is one CXS_START sample per preemption, so you could just count the number of samples. If you want to know *which* task was preempted, you need to look at the sched_trace data, which contains PIDs.

- Björn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.litmus-rt.org/pipermail/litmus-dev/attachments/20140607/049d9d99/attachment.html>


More information about the litmus-dev mailing list