/* Returns non-zero if opcode modifies the interrupt flag.  */
static int __kprobes is_IF_modifier(kprobe_opcode_t *insn)
/* Returns non-zero if opcode modifies the interrupt flag.  */
static int __kprobes is_IF_modifier(kprobe_opcode_t *insn)
{
	switch (*insn) {
	case 0xfa:
	case 0xfb:
	case 0xcf:
	case 0x9d:
		return 1;
	}
	if (is_REX_prefix(insn))
		return is_IF_modifier(++insn);
	return 0;
}