简体   繁体   English

如何在Linux中使用微状态记帐?

[英]How do I use micro-state accounting in Linux?

I would like to access micro-state accounting timers programmatically on Linux. 我想在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. 这是一个描述微状态会计的(有点旧)页面,但我找不到那里描述的系统调用。

Patches and user-space programs are available at http://www.gelato.unsw.edu.au/patches/ . 有关补丁和用户空间程序的信息, 访问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. 由于补丁没有向上游迁移, 似乎是因为复杂性/开销太高 ,所以你必须推出自己的内核。

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. 在Google上搜索MSA_SELF显示它是多年前最后一次讨论的,上游快速查看显示它不在上游内核中。 So I think it's fair to say "this data isn't available". 所以我认为说“这个数据不可用”是公平的。

You might want to look at clock_getres() etc. 你可能想看看clock_getres()等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM