views:

275

answers:

2

I would like to access micro-state accounting timers programmatically on Linux. I guess the first part of the question is where are these available? Which kernel versions and distros? Which hardware platforms? The second part is how to actually go about accessing the timers? What is the system call?

Here is a (somewhat old) page describing micro-state accounting, but I couldn't find the system call described there.

A: 

Searching for MSA_SELF on google shows that it was last discussed years ago, and a quick look upstream shows that it isn't in the upstream kernel. So I think it's fair to say "this data isn't available".

You might want to look at clock_getres() etc.

James Antill
+1  A: 

Patches and user-space programs are available at http://www.gelato.unsw.edu.au/patches/. As the patches did not migrate upstream, seemingly because of too high complexity/overhead, you'll have to roll your own kernel.

David Schmitt