The following program is able to exercise the posix timer subsystem in various ways and also able to check for posix compliance by detecting system libraries that violate the posix specification by providing real time instead of cpu time
I was happy to find that not only does POSIX define an interface for the OS to provide cycle time information per thread, but that Linux Kernel >= 2.6.10 has full support. I think. I still need to play with it. Meme'ing this for future reference when I have time to do so. Christoph Lameter - posix timer test program / glibc patch to make glibc posix compliant |