Adds an OS-agnostic header for TSC readings
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 29 Mar 2013 21:49:51 +0000 (14:49 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 29 Mar 2013 21:49:51 +0000 (14:49 -0700)
commite3c205a04270e0e0d61494d55defeff03b29fb83
tree3dd922d1c1bc970e5cd7df37c70e82c61b8e903a
parent11ec455c9fc4b53f3a407df61058c28da7193735
Adds an OS-agnostic header for TSC readings

Linux programs can #include tsc-compat.h to get similar calls to Akaros
library calls for reading the tsc and gettings its frequency.

If someone feels inclined, they can write an overhead detector for
Linux, being mindful of IRQs and the ksched.
user/parlib/include/tsc-compat.h [new file with mode: 0644]