summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-04-22 16:20:55 +0200
committerOleg Nesterov <oleg@redhat.com>2014-04-30 19:10:37 +0200
commit97aa5cddbe9e01521137f337624469374e3cbde5 (patch)
tree6a813750457cd69b24e2ef46edf7db198dd99578 /arch/x86/include
parent220ef8dc9a7a63fe202aacd3fc61e5104f6dd98c (diff)
downloadblackbird-op-linux-97aa5cddbe9e01521137f337624469374e3cbde5.tar.gz
blackbird-op-linux-97aa5cddbe9e01521137f337624469374e3cbde5.zip
uprobes/x86: Move default_xol_ops's data into arch_uprobe->def
Finally we can move arch_uprobe->fixups/rip_rela_target_address into the new "def" struct and place this struct in the union, they are only used by default_xol_ops paths. The patch also renames rip_rela_target_address to riprel_target just to make this name shorter. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Jim Keniston <jkenisto@us.ibm.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/uprobes.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86/include/asm/uprobes.h b/arch/x86/include/asm/uprobes.h
index 93bee7b93854..72caff7afbde 100644
--- a/arch/x86/include/asm/uprobes.h
+++ b/arch/x86/include/asm/uprobes.h
@@ -41,18 +41,20 @@ struct arch_uprobe {
u8 ixol[MAX_UINSN_BYTES];
};
- u16 fixups;
const struct uprobe_xol_ops *ops;
union {
-#ifdef CONFIG_X86_64
- unsigned long rip_rela_target_address;
-#endif
struct {
s32 offs;
u8 ilen;
u8 opc1;
- } branch;
+ } branch;
+ struct {
+#ifdef CONFIG_X86_64
+ long riprel_target;
+#endif
+ u16 fixups;
+ } def;
};
};
OpenPOWER on IntegriCloud