Oprofile是一种细粒度的工具,可以为指令集或者为函数、系统调用或中断处理例程收集采样。
OProfile is fine-grained and can collect samples for a set of instructions, or for function, system call, or interrupt handlers.
当处理DRV_DISABLE消息时,驱动程序会把任何硬件都置于非活动状态,也可能会移出中断处理例程。
When processing the DRV_DISABLE message, the driver places any hardware in an inactive state, which may include the removal of interrupt handlers.
缺省情况下,驱动程序IR Q例程应该返回IRQ_HANDLED,当驱动程序正在处理那个中断时却返回了IRQ_NONE,说明存在bug。
By default, the driver IRQ routine should return IRQ_HANDLED as it is a bug to return IRQ_NONE when the driver has actually handled that interrupt.
Kprobes提供了一个强行进入任何内核例程并从中断处理器无干扰地收集信息的接口。
Kprobes provides an interface to break into any kernel routine and collect information non-disruptively from the interrupt handler.
但是如果运行在同一个处理器中的中断例程取得了先前的锁会发生什么呢?
But what happens if the interrupt routine executes in the same processor as the code that took out the lock originally?
但是如果运行在同一个处理器中的中断例程取得了先前的锁会发生什么呢?
But what happens if the interrupt routine executes in the same processor as the code that took out the lock originally?
应用推荐