|
@@ -30,6 +30,16 @@
|
|
|
|
|
|
|
|
#define UPROBE_TRAP_NR UINT_MAX
|
|
#define UPROBE_TRAP_NR UINT_MAX
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * is_trap_insn - check if the instruction is a trap variant
|
|
|
|
|
+ * @insn: instruction to be checked.
|
|
|
|
|
+ * Returns true if @insn is a trap variant.
|
|
|
|
|
+ */
|
|
|
|
|
+bool is_trap_insn(uprobe_opcode_t *insn)
|
|
|
|
|
+{
|
|
|
|
|
+ return (is_trap(*insn));
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* arch_uprobe_analyze_insn
|
|
* arch_uprobe_analyze_insn
|
|
|
* @mm: the probed address space.
|
|
* @mm: the probed address space.
|