aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_kprobe.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_kprobe.c')
-rw-r--r--kernel/trace/trace_kprobe.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index fe3f00c381c0..389f9e4744c8 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -88,6 +88,21 @@ static int kprobe_dispatcher(struct kprobe *kp, struct pt_regs *regs);
88static int kretprobe_dispatcher(struct kretprobe_instance *ri, 88static int kretprobe_dispatcher(struct kretprobe_instance *ri,
89 struct pt_regs *regs); 89 struct pt_regs *regs);
90 90
91/*
92 * Kprobes-specific fetch functions
93 */
94#define DEFINE_FETCH_stack(type) \
95static __kprobes void FETCH_FUNC_NAME(stack, type)(struct pt_regs *regs,\
96 void *offset, void *dest) \
97{ \
98 *(type *)dest = (type)regs_get_kernel_stack_nth(regs, \
99 (unsigned int)((unsigned long)offset)); \
100}
101DEFINE_BASIC_FETCH_FUNCS(stack)
102/* No string on the stack entry */
103#define fetch_stack_string NULL
104#define fetch_stack_string_size NULL
105
91/* Fetch type information table */ 106/* Fetch type information table */
92const struct fetch_type kprobes_fetch_type_table[] = { 107const struct fetch_type kprobes_fetch_type_table[] = {
93 /* Special types */ 108 /* Special types */