obj-m := swap_kprobe.o
swap_kprobe-y := dbi_kprobes_deps.o dbi_insn_slots.o arch/asm/dbi_kprobes.o arch/dbi_kprobes.o dbi_kprobes.o
-swap_kprobe-$(CONFIG_ARM) += arch/asm/dbi_kprobes_arm.o arch/asm/dbi_kprobes_thumb.o
+swap_kprobe-$(CONFIG_ARM) += arch/asm/dbi_kprobes_arm.o
#include "dbi_kprobes.h"
#include "dbi_kprobes_arm.h"
-#include "dbi_kprobes_thumb.h"
#include "../dbi_kprobes.h"
#include "../../dbi_kprobes.h"
+++ /dev/null
-#ifndef _DBI_KPROBES_THUMB_H
-#define _DBI_KPROBES_THUMB_H
-
-void gen_insn_execbuf_thumb(void);
-EXPORT_SYMBOL_GPL(gen_insn_execbuf_thumb);
-
-void pc_dep_insn_execbuf_thumb(void);
-EXPORT_SYMBOL_GPL(pc_dep_insn_execbuf_thumb);
-
-#endif /* _DBI_KPROBES_THUMB_H */
obj-m := swap_uprobe.o
swap_uprobe-y := swap_uprobes.o arch/asm/swap_uprobes.o
+swap_uprobe-$(CONFIG_ARM) += arch/asm/trampoline_thumb.o
\ No newline at end of file
#include <swap_uprobes.h>
#include <asm/swap_uprobes.h>
#include <dbi_insn_slots.h>
+#include "trampoline_thumb.h"
// FIXME:
#include <dbi_kdebug.h>
extern struct hlist_head uprobe_insn_pages;
-void gen_insn_execbuf_thumb(void);
-void pc_dep_insn_execbuf_thumb(void);
#define sign_extend(x, signbit) ((x) | (0 - ((x) & (1 << (signbit)))))
--- /dev/null
+#ifndef __ASM_ARM_TRAMPOLINE_THUMB_H
+#define __ASM_ARM_TRAMPOLINE_THUMB_H
+
+void gen_insn_execbuf_thumb(void);
+void pc_dep_insn_execbuf_thumb(void);
+
+#endif /* __ASM_ARM_TRAMPOLINE_THUMB_H */