git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] kprobes: fix bug when probed on task and isr functions
[sfrench/cifs-2.6.git]
/
include
/
asm-ppc64
/
kprobes.h
diff --git
a/include/asm-ppc64/kprobes.h
b/include/asm-ppc64/kprobes.h
index 0802919c3235c1b5cc2debe8a0930558525e6615..d9129d2b038ee7d09f87bd22aa6b10b95e1e3329 100644
(file)
--- 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);