global pstated function masked_dflag:long(f) { return ((f & 1 << 9) != 0) } probe irq_handler.entry { // Record if pstate.d is masked pstated[cpu(), irq] = masked_dflag(flags) } probe irq_handler.exit { if ((!masked_dflag(flags)) && pstated[cpu(), irq]) { printf("d flag unmasked in irq %d(%s)\n", irq, kernel_string(dev_name)); } delete pstated[cpu(), irq] }