Skip to the content.

IRQ_TIME_ACCOUNTING

config IRQ_TIME_ACCOUNTING
	bool "Fine granularity task level IRQ time accounting"
	depends on HAVE_IRQ_TIME_ACCOUNTING && !VIRT_CPU_ACCOUNTING_NATIVE
	help
	  Select this option to enable fine granularity task irq time
	  accounting. This is done by reading a timestamp on each
	  transitions between softirq and hardirq state, so there can be a
	  small performance impact.

	  If in doubt, say N here.

似乎同时有好几个地方来统计:

@[
    irqtime_account_irq+5
    __irq_exit_rcu+67
    irq_exit_rcu+14
    common_interrupt+136
    asm_common_interrupt+38
    default_idle+19
    default_idle_call+71
    do_idle+244
    cpu_startup_entry+42
    start_secondary+156
    common_startup_64+318
]: 204737

关于 /proc/stat ,参考 sysfs-sched.md

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。