summaryrefslogtreecommitdiff
path: root/arch/sh/kernel/kprobes.c
AgeCommit message (Collapse)AuthorFilesLines
2008-09-09sh: kprobes: kretprobe_trampoline needs to be global.Paul Mundt1-1/+3
Needed by CONFIG_TRACING. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: kprobes: __kprobes annotations and formatting cleanups.Paul Mundt1-17/+20
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: kprobes: Fix up race against probe point removal.Paul Mundt1-0/+11
Handle a corner case where another CPU or debugger removes the probe point from underneath us. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: kprobes: Fix up a preemption imbalance on jprobe return.Paul Mundt1-0/+1
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: kprobes: Default to NOTIFY_DONE for unhandled debug traps.Paul Mundt1-1/+1
Presently this is doing a force_sig() SIGTRAP, which is already taken care of in the generic code if no one asserts NOTIFY_STOP. Switch the default return to NOTIFY_DONE in the case of unhandled traps, so that the same trap may pass through to other users on the same die chain. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: kprobes: Use trapa #0x3a for breakpoint trap.Paul Mundt1-2/+1
Not all parts support trapa #0xff, so use something within the debug trap range that's accessible on all parts. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: kprobes: Hook up kprobe_fault_handler() in the page fault path.Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: Mark kretprobe_trampoline_holder static and __used.Paul Mundt1-1/+1
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-09-08sh: Add kprobes support.Chris Smith1-0/+568
Initial support for kprobes/kretprobes for 32-bit SH platforms. [ General cleanup and some rework for the kretprobe hash lock. -- PFM ] Signed-off-by: Chris Smith <chris.smith@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>