diff options
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 85291c4de406..5931933587e9 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -193,8 +193,8 @@ int syscall_enter_define_fields(struct ftrace_event_call *call) | |||
193 | return ret; | 193 | return ret; |
194 | 194 | ||
195 | for (i = 0; i < meta->nb_args; i++) { | 195 | for (i = 0; i < meta->nb_args; i++) { |
196 | ret = trace_define_field(call, meta->types[i], | 196 | ret = trace_define_field(call, (char *)meta->types[i], |
197 | meta->args[i], offset, | 197 | (char *)meta->args[i], offset, |
198 | sizeof(unsigned long), 0, | 198 | sizeof(unsigned long), 0, |
199 | FILTER_OTHER); | 199 | FILTER_OTHER); |
200 | offset += sizeof(unsigned long); | 200 | offset += sizeof(unsigned long); |
@@ -277,13 +277,13 @@ void ftrace_syscall_exit(struct pt_regs *regs, long ret) | |||
277 | trace_current_buffer_unlock_commit(event, 0, 0); | 277 | trace_current_buffer_unlock_commit(event, 0, 0); |
278 | } | 278 | } |
279 | 279 | ||
280 | int reg_event_syscall_enter(void *ptr) | 280 | int reg_event_syscall_enter(struct ftrace_event_call *call) |
281 | { | 281 | { |
282 | int ret = 0; | 282 | int ret = 0; |
283 | int num; | 283 | int num; |
284 | char *name; | 284 | char *name; |
285 | 285 | ||
286 | name = (char *)ptr; | 286 | name = (char *)call->data; |
287 | num = syscall_name_to_nr(name); | 287 | num = syscall_name_to_nr(name); |
288 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) | 288 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) |
289 | return -ENOSYS; | 289 | return -ENOSYS; |
@@ -301,12 +301,12 @@ int reg_event_syscall_enter(void *ptr) | |||
301 | return ret; | 301 | return ret; |
302 | } | 302 | } |
303 | 303 | ||
304 | void unreg_event_syscall_enter(void *ptr) | 304 | void unreg_event_syscall_enter(struct ftrace_event_call *call) |
305 | { | 305 | { |
306 | int num; | 306 | int num; |
307 | char *name; | 307 | char *name; |
308 | 308 | ||
309 | name = (char *)ptr; | 309 | name = (char *)call->data; |
310 | num = syscall_name_to_nr(name); | 310 | num = syscall_name_to_nr(name); |
311 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) | 311 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) |
312 | return; | 312 | return; |
@@ -318,13 +318,13 @@ void unreg_event_syscall_enter(void *ptr) | |||
318 | mutex_unlock(&syscall_trace_lock); | 318 | mutex_unlock(&syscall_trace_lock); |
319 | } | 319 | } |
320 | 320 | ||
321 | int reg_event_syscall_exit(void *ptr) | 321 | int reg_event_syscall_exit(struct ftrace_event_call *call) |
322 | { | 322 | { |
323 | int ret = 0; | 323 | int ret = 0; |
324 | int num; | 324 | int num; |
325 | char *name; | 325 | char *name; |
326 | 326 | ||
327 | name = (char *)ptr; | 327 | name = (char *)call->data; |
328 | num = syscall_name_to_nr(name); | 328 | num = syscall_name_to_nr(name); |
329 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) | 329 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) |
330 | return -ENOSYS; | 330 | return -ENOSYS; |
@@ -342,12 +342,12 @@ int reg_event_syscall_exit(void *ptr) | |||
342 | return ret; | 342 | return ret; |
343 | } | 343 | } |
344 | 344 | ||
345 | void unreg_event_syscall_exit(void *ptr) | 345 | void unreg_event_syscall_exit(struct ftrace_event_call *call) |
346 | { | 346 | { |
347 | int num; | 347 | int num; |
348 | char *name; | 348 | char *name; |
349 | 349 | ||
350 | name = (char *)ptr; | 350 | name = (char *)call->data; |
351 | num = syscall_name_to_nr(name); | 351 | num = syscall_name_to_nr(name); |
352 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) | 352 | if (num < 0 || num >= FTRACE_SYSCALL_MAX) |
353 | return; | 353 | return; |