This patch set adds KProbs, JProbs and KRetProbes support for the MIPS
It was tested on a 64-bit big-endian kernel (Octeon), but should work
equally well on 32-bit and little-endian as well.
As you can see from the patches it is partially based on previous work
by Sony and Himanshu Chauhan.
David Daney (5):
MIPS: Define regs_return_value()
MIPS: Add instrunction format for BREAK and SYSCALL
MIPS: Add KProbe support.
samples: kprobe_example: Make it print something on MIPS.
documentation: Mention that KProbes is supported on MIPS
Documentation/kprobes.txt | 1 +
arch/mips/Kconfig | 2 +
arch/mips/Makefile | 3 +
arch/mips/include/asm/break.h | 2 +
arch/mips/include/asm/inst.h | 15 +-
arch/mips/include/asm/kdebug.h | 3 +
arch/mips/include/asm/kprobes.h | 91 ++++++
arch/mips/include/asm/ptrace.h | 1 +
arch/mips/kernel/Makefile | 1 +
arch/mips/kernel/kprobes.c | 562 ++++++++++++++++++++++++++++++++++++++
arch/mips/kernel/traps.c | 22 ++-
arch/mips/mm/fault.c | 15 +-
samples/kprobes/kprobe_example.c | 9 +
13 files changed, 724 insertions(+), 3 deletions(-)
create mode 100644 arch/mips/include/asm/kprobes.h
create mode 100644 arch/mips/kernel/kprobes.c