Redesign KProbe module (separating core and arch parts).
[kernel/swap-modules.git] / kprobe / arch / asm-x86 / dbi_kprobes_deps.c
1 #include "kprobe_deps.h"
2
3 DECLARE_MOD_DEP_WRAPPER (module_alloc, void *, unsigned long size)
4 IMP_MOD_DEP_WRAPPER (module_alloc, size)
5
6 DECLARE_MOD_DEP_WRAPPER (module_free, void, struct module *mod, void *module_region)
7 IMP_MOD_DEP_WRAPPER (module_free, mod, module_region)
8
9 DECLARE_MOD_DEP_WRAPPER (fixup_exception, int, struct pt_regs * regs)
10 IMP_MOD_DEP_WRAPPER (fixup_exception, regs)
11
12 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26))
13 DECLARE_MOD_DEP_WRAPPER(text_poke, \
14                         void, void *addr, unsigned char *opcode, int len)
15 #else
16 DECLARE_MOD_DEP_WRAPPER(text_poke, \
17                         void *, void *addr, const void *opcode, size_t len)
18 #endif
19 IMP_MOD_DEP_WRAPPER(text_poke, addr, opcode, len)
20
21 DECLARE_MOD_DEP_WRAPPER(show_registers, void, struct pt_regs * regs)
22 IMP_MOD_DEP_WRAPPER(show_registers, regs)