uprobes/x86: Emulate unconditional relative jmp's
[firefly-linux-kernel-4.4.55.git] / arch / x86 / include / asm / uprobes.h
index 9f8210bcbb49d9716061eb52a8a49019cee2afb4..e9fd4d5537edc4676f266f21483ce4afef37d4e0 100644 (file)
@@ -44,9 +44,15 @@ struct arch_uprobe {
        u16                             fixups;
        const struct uprobe_xol_ops     *ops;
 
+       union {
 #ifdef CONFIG_X86_64
-       unsigned long                   rip_rela_target_address;
+               unsigned long                   rip_rela_target_address;
 #endif
+               struct {
+                       s32     offs;
+                       u8      ilen;
+               }                               branch;
+       };
 };
 
 struct arch_uprobe_task {