Merge tag 'v4.0-rc1' into patchwork
[firefly-linux-kernel-4.4.55.git] / arch / arm / probes / decode.h
index 1d0b53169080326a505e035308ecb3dd51466a27..f9b08ba7fe73efd99d04572db6e6e092b9655c18 100644 (file)
@@ -314,6 +314,14 @@ union decode_action {
        probes_custom_decode_t  *decoder;
 };
 
+typedef enum probes_insn (probes_check_t)(probes_opcode_t,
+                                          struct arch_probes_insn *,
+                                          const struct decode_header *);
+
+struct decode_checker {
+       probes_check_t  *checker;
+};
+
 #define DECODE_END                     \
        {.bits = DECODE_TYPE_END}
 
@@ -402,6 +410,7 @@ probes_insn_handler_t probes_emulate_none;
 int __kprobes
 probes_decode_insn(probes_opcode_t insn, struct arch_probes_insn *asi,
                const union decode_item *table, bool thumb, bool emulate,
-               const union decode_action *actions);
+               const union decode_action *actions,
+               const struct decode_checker **checkers);
 
 #endif