diff options
-rw-r--r-- | kernel/trace/trace_kprobe.c | 5 | ||||
-rw-r--r-- | kernel/trace/trace_probe.c | 4 | ||||
-rw-r--r-- | kernel/trace/trace_uprobe.c | 20 |
3 files changed, 14 insertions, 15 deletions
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index 903ae28962be..aa5f0bfcdf7b 100644 --- a/kernel/trace/trace_kprobe.c +++ b/kernel/trace/trace_kprobe.c | |||
@@ -1196,9 +1196,8 @@ kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, | |||
1196 | * kprobe_trace_self_tests_init() does enable_trace_probe/disable_trace_probe | 1196 | * kprobe_trace_self_tests_init() does enable_trace_probe/disable_trace_probe |
1197 | * lockless, but we can't race with this __init function. | 1197 | * lockless, but we can't race with this __init function. |
1198 | */ | 1198 | */ |
1199 | static __kprobes | 1199 | static int kprobe_register(struct ftrace_event_call *event, |
1200 | int kprobe_register(struct ftrace_event_call *event, | 1200 | enum trace_reg type, void *data) |
1201 | enum trace_reg type, void *data) | ||
1202 | { | 1201 | { |
1203 | struct trace_kprobe *tk = (struct trace_kprobe *)event->data; | 1202 | struct trace_kprobe *tk = (struct trace_kprobe *)event->data; |
1204 | struct ftrace_event_file *file = data; | 1203 | struct ftrace_event_file *file = data; |
diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c index 8364a421b4df..d3a91e40a659 100644 --- a/kernel/trace/trace_probe.c +++ b/kernel/trace/trace_probe.c | |||
@@ -183,7 +183,7 @@ DEFINE_BASIC_FETCH_FUNCS(bitfield) | |||
183 | #define fetch_bitfield_string NULL | 183 | #define fetch_bitfield_string NULL |
184 | #define fetch_bitfield_string_size NULL | 184 | #define fetch_bitfield_string_size NULL |
185 | 185 | ||
186 | static __kprobes void | 186 | static void |
187 | update_bitfield_fetch_param(struct bitfield_fetch_param *data) | 187 | update_bitfield_fetch_param(struct bitfield_fetch_param *data) |
188 | { | 188 | { |
189 | /* | 189 | /* |
@@ -196,7 +196,7 @@ update_bitfield_fetch_param(struct bitfield_fetch_param *data) | |||
196 | update_symbol_cache(data->orig.data); | 196 | update_symbol_cache(data->orig.data); |
197 | } | 197 | } |
198 | 198 | ||
199 | static __kprobes void | 199 | static void |
200 | free_bitfield_fetch_param(struct bitfield_fetch_param *data) | 200 | free_bitfield_fetch_param(struct bitfield_fetch_param *data) |
201 | { | 201 | { |
202 | /* | 202 | /* |
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index c082a7441345..991e3b7c4edb 100644 --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c | |||
@@ -108,8 +108,8 @@ static unsigned long get_user_stack_nth(struct pt_regs *regs, unsigned int n) | |||
108 | * Uprobes-specific fetch functions | 108 | * Uprobes-specific fetch functions |
109 | */ | 109 | */ |
110 | #define DEFINE_FETCH_stack(type) \ | 110 | #define DEFINE_FETCH_stack(type) \ |
111 | static __kprobes void FETCH_FUNC_NAME(stack, type)(struct pt_regs *regs,\ | 111 | static void FETCH_FUNC_NAME(stack, type)(struct pt_regs *regs, \ |
112 | void *offset, void *dest) \ | 112 | void *offset, void *dest) \ |
113 | { \ | 113 | { \ |
114 | *(type *)dest = (type)get_user_stack_nth(regs, \ | 114 | *(type *)dest = (type)get_user_stack_nth(regs, \ |
115 | ((unsigned long)offset)); \ | 115 | ((unsigned long)offset)); \ |
@@ -120,8 +120,8 @@ DEFINE_BASIC_FETCH_FUNCS(stack) | |||
120 | #define fetch_stack_string_size NULL | 120 | #define fetch_stack_string_size NULL |
121 | 121 | ||
122 | #define DEFINE_FETCH_memory(type) \ | 122 | #define DEFINE_FETCH_memory(type) \ |
123 | static __kprobes void FETCH_FUNC_NAME(memory, type)(struct pt_regs *regs,\ | 123 | static void FETCH_FUNC_NAME(memory, type)(struct pt_regs *regs, \ |
124 | void *addr, void *dest) \ | 124 | void *addr, void *dest) \ |
125 | { \ | 125 | { \ |
126 | type retval; \ | 126 | type retval; \ |
127 | void __user *vaddr = (void __force __user *) addr; \ | 127 | void __user *vaddr = (void __force __user *) addr; \ |
@@ -136,8 +136,8 @@ DEFINE_BASIC_FETCH_FUNCS(memory) | |||
136 | * Fetch a null-terminated string. Caller MUST set *(u32 *)dest with max | 136 | * Fetch a null-terminated string. Caller MUST set *(u32 *)dest with max |
137 | * length and relative data location. | 137 | * length and relative data location. |
138 | */ | 138 | */ |
139 | static __kprobes void FETCH_FUNC_NAME(memory, string)(struct pt_regs *regs, | 139 | static void FETCH_FUNC_NAME(memory, string)(struct pt_regs *regs, |
140 | void *addr, void *dest) | 140 | void *addr, void *dest) |
141 | { | 141 | { |
142 | long ret; | 142 | long ret; |
143 | u32 rloc = *(u32 *)dest; | 143 | u32 rloc = *(u32 *)dest; |
@@ -158,8 +158,8 @@ static __kprobes void FETCH_FUNC_NAME(memory, string)(struct pt_regs *regs, | |||
158 | } | 158 | } |
159 | } | 159 | } |
160 | 160 | ||
161 | static __kprobes void FETCH_FUNC_NAME(memory, string_size)(struct pt_regs *regs, | 161 | static void FETCH_FUNC_NAME(memory, string_size)(struct pt_regs *regs, |
162 | void *addr, void *dest) | 162 | void *addr, void *dest) |
163 | { | 163 | { |
164 | int len; | 164 | int len; |
165 | void __user *vaddr = (void __force __user *) addr; | 165 | void __user *vaddr = (void __force __user *) addr; |
@@ -184,8 +184,8 @@ static unsigned long translate_user_vaddr(void *file_offset) | |||
184 | } | 184 | } |
185 | 185 | ||
186 | #define DEFINE_FETCH_file_offset(type) \ | 186 | #define DEFINE_FETCH_file_offset(type) \ |
187 | static __kprobes void FETCH_FUNC_NAME(file_offset, type)(struct pt_regs *regs,\ | 187 | static void FETCH_FUNC_NAME(file_offset, type)(struct pt_regs *regs, \ |
188 | void *offset, void *dest) \ | 188 | void *offset, void *dest)\ |
189 | { \ | 189 | { \ |
190 | void *vaddr = (void *)translate_user_vaddr(offset); \ | 190 | void *vaddr = (void *)translate_user_vaddr(offset); \ |
191 | \ | 191 | \ |