Possible Duplicate:
Monitoring pthread context switching
I have a program where under certain scheduling layout some strange things happen (a number of threads which do sched_yield seem to throttle each other in a strange manner).
I would like to take an exact trace of what is going on in terms of the OS scheduler slices on each CPU. Is there a way to capture such trace? I'm running SLES 11.1, with root privileges.