X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-ppc64%2Fkprobes.h;h=d9129d2b038ee7d09f87bd22aa6b10b95e1e3329;hb=eb92f4ef320b738e41ad43476a5d05c8a20d5cc7;hp=0802919c3235c1b5cc2debe8a0930558525e6615;hpb=54522b6613a03807f057fd567794a31267ef85cb;p=powerpc.git diff --git a/include/asm-ppc64/kprobes.h b/include/asm-ppc64/kprobes.h index 0802919c32..d9129d2b03 100644 --- a/include/asm-ppc64/kprobes.h +++ b/include/asm-ppc64/kprobes.h @@ -42,6 +42,9 @@ typedef unsigned int kprobe_opcode_t; #define JPROBE_ENTRY(pentry) (kprobe_opcode_t *)((func_descr_t *)pentry) +#define is_trap(instr) (IS_TW(instr) || IS_TD(instr) || \ + IS_TWI(instr) || IS_TDI(instr)) + #define ARCH_SUPPORTS_KRETPROBES void kretprobe_trampoline(void);