|
@@ -58,7 +58,7 @@
|
|
|
#include <asm/insn.h>
|
|
|
#include <asm/debugreg.h>
|
|
|
|
|
|
-#include "kprobes-common.h"
|
|
|
+#include "common.h"
|
|
|
|
|
|
void jprobe_return_end(void);
|
|
|
|
|
@@ -78,7 +78,7 @@ DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk);
|
|
|
* Groups, and some special opcodes can not boost.
|
|
|
* This is non-const and volatile to keep gcc from statically
|
|
|
* optimizing it out, as variable_test_bit makes gcc think only
|
|
|
- * *(unsigned long*) is used.
|
|
|
+ * *(unsigned long*) is used.
|
|
|
*/
|
|
|
static volatile u32 twobyte_is_boostable[256 / 32] = {
|
|
|
/* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
|
|
@@ -117,7 +117,7 @@ static void __kprobes __synthesize_relative_insn(void *from, void *to, u8 op)
|
|
|
struct __arch_relative_insn {
|
|
|
u8 op;
|
|
|
s32 raddr;
|
|
|
- } __attribute__((packed)) *insn;
|
|
|
+ } __packed *insn;
|
|
|
|
|
|
insn = (struct __arch_relative_insn *)from;
|
|
|
insn->raddr = (s32)((long)(to) - ((long)(from) + 5));
|