diff options
| author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-05 11:45:27 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 14:06:10 -0400 |
| commit | 2425bcb9240f8c97d793cb31c8e8d8d0a843fa29 (patch) | |
| tree | 2177ae6e6a1d6abe8fe0caec482f3430332cb02f /kernel/trace/trace_syscalls.c | |
| parent | 7f1d2f8210195c8c309d424a77dbf06a6d2186f4 (diff) | |
tracing: Rename ftrace_event_{call,class} to trace_event_{call,class}
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. The structures ftrace_event_call and
ftrace_event_class have nothing to do with the function hooks, and are
really trace_event structures. Rename ftrace_event_* to trace_event_*.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
| -rw-r--r-- | kernel/trace/trace_syscalls.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index ee4525261e82..504f582b15db 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
| @@ -13,13 +13,13 @@ | |||
| 13 | 13 | ||
| 14 | static DEFINE_MUTEX(syscall_trace_lock); | 14 | static DEFINE_MUTEX(syscall_trace_lock); |
| 15 | 15 | ||
| 16 | static int syscall_enter_register(struct ftrace_event_call *event, | 16 | static int syscall_enter_register(struct trace_event_call *event, |
| 17 | enum trace_reg type, void *data); | 17 | enum trace_reg type, void *data); |
| 18 | static int syscall_exit_register(struct ftrace_event_call *event, | 18 | static int syscall_exit_register(struct trace_event_call *event, |
| 19 | enum trace_reg type, void *data); | 19 | enum trace_reg type, void *data); |
| 20 | 20 | ||
| 21 | static struct list_head * | 21 | static struct list_head * |
| 22 | syscall_get_enter_fields(struct ftrace_event_call *call) | 22 | syscall_get_enter_fields(struct trace_event_call *call) |
| 23 | { | 23 | { |
| 24 | struct syscall_metadata *entry = call->data; | 24 | struct syscall_metadata *entry = call->data; |
| 25 | 25 | ||
| @@ -219,7 +219,7 @@ __set_enter_print_fmt(struct syscall_metadata *entry, char *buf, int len) | |||
| 219 | return pos; | 219 | return pos; |
| 220 | } | 220 | } |
| 221 | 221 | ||
| 222 | static int __init set_syscall_print_fmt(struct ftrace_event_call *call) | 222 | static int __init set_syscall_print_fmt(struct trace_event_call *call) |
| 223 | { | 223 | { |
| 224 | char *print_fmt; | 224 | char *print_fmt; |
| 225 | int len; | 225 | int len; |
| @@ -244,7 +244,7 @@ static int __init set_syscall_print_fmt(struct ftrace_event_call *call) | |||
| 244 | return 0; | 244 | return 0; |
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | static void __init free_syscall_print_fmt(struct ftrace_event_call *call) | 247 | static void __init free_syscall_print_fmt(struct trace_event_call *call) |
| 248 | { | 248 | { |
| 249 | struct syscall_metadata *entry = call->data; | 249 | struct syscall_metadata *entry = call->data; |
| 250 | 250 | ||
| @@ -252,7 +252,7 @@ static void __init free_syscall_print_fmt(struct ftrace_event_call *call) | |||
| 252 | kfree(call->print_fmt); | 252 | kfree(call->print_fmt); |
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | static int __init syscall_enter_define_fields(struct ftrace_event_call *call) | 255 | static int __init syscall_enter_define_fields(struct trace_event_call *call) |
| 256 | { | 256 | { |
| 257 | struct syscall_trace_enter trace; | 257 | struct syscall_trace_enter trace; |
| 258 | struct syscall_metadata *meta = call->data; | 258 | struct syscall_metadata *meta = call->data; |
| @@ -275,7 +275,7 @@ static int __init syscall_enter_define_fields(struct ftrace_event_call *call) | |||
| 275 | return ret; | 275 | return ret; |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | static int __init syscall_exit_define_fields(struct ftrace_event_call *call) | 278 | static int __init syscall_exit_define_fields(struct trace_event_call *call) |
| 279 | { | 279 | { |
| 280 | struct syscall_trace_exit trace; | 280 | struct syscall_trace_exit trace; |
| 281 | int ret; | 281 | int ret; |
| @@ -385,7 +385,7 @@ static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) | |||
| 385 | } | 385 | } |
| 386 | 386 | ||
| 387 | static int reg_event_syscall_enter(struct trace_event_file *file, | 387 | static int reg_event_syscall_enter(struct trace_event_file *file, |
| 388 | struct ftrace_event_call *call) | 388 | struct trace_event_call *call) |
| 389 | { | 389 | { |
| 390 | struct trace_array *tr = file->tr; | 390 | struct trace_array *tr = file->tr; |
| 391 | int ret = 0; | 391 | int ret = 0; |
| @@ -406,7 +406,7 @@ static int reg_event_syscall_enter(struct trace_event_file *file, | |||
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | static void unreg_event_syscall_enter(struct trace_event_file *file, | 408 | static void unreg_event_syscall_enter(struct trace_event_file *file, |
| 409 | struct ftrace_event_call *call) | 409 | struct trace_event_call *call) |
| 410 | { | 410 | { |
| 411 | struct trace_array *tr = file->tr; | 411 | struct trace_array *tr = file->tr; |
| 412 | int num; | 412 | int num; |
| @@ -423,7 +423,7 @@ static void unreg_event_syscall_enter(struct trace_event_file *file, | |||
| 423 | } | 423 | } |
| 424 | 424 | ||
| 425 | static int reg_event_syscall_exit(struct trace_event_file *file, | 425 | static int reg_event_syscall_exit(struct trace_event_file *file, |
| 426 | struct ftrace_event_call *call) | 426 | struct trace_event_call *call) |
| 427 | { | 427 | { |
| 428 | struct trace_array *tr = file->tr; | 428 | struct trace_array *tr = file->tr; |
| 429 | int ret = 0; | 429 | int ret = 0; |
| @@ -444,7 +444,7 @@ static int reg_event_syscall_exit(struct trace_event_file *file, | |||
| 444 | } | 444 | } |
| 445 | 445 | ||
| 446 | static void unreg_event_syscall_exit(struct trace_event_file *file, | 446 | static void unreg_event_syscall_exit(struct trace_event_file *file, |
| 447 | struct ftrace_event_call *call) | 447 | struct trace_event_call *call) |
| 448 | { | 448 | { |
| 449 | struct trace_array *tr = file->tr; | 449 | struct trace_array *tr = file->tr; |
| 450 | int num; | 450 | int num; |
| @@ -460,7 +460,7 @@ static void unreg_event_syscall_exit(struct trace_event_file *file, | |||
| 460 | mutex_unlock(&syscall_trace_lock); | 460 | mutex_unlock(&syscall_trace_lock); |
| 461 | } | 461 | } |
| 462 | 462 | ||
| 463 | static int __init init_syscall_trace(struct ftrace_event_call *call) | 463 | static int __init init_syscall_trace(struct trace_event_call *call) |
| 464 | { | 464 | { |
| 465 | int id; | 465 | int id; |
| 466 | int num; | 466 | int num; |
| @@ -493,7 +493,7 @@ struct trace_event_functions exit_syscall_print_funcs = { | |||
| 493 | .trace = print_syscall_exit, | 493 | .trace = print_syscall_exit, |
| 494 | }; | 494 | }; |
| 495 | 495 | ||
| 496 | struct ftrace_event_class __refdata event_class_syscall_enter = { | 496 | struct trace_event_class __refdata event_class_syscall_enter = { |
| 497 | .system = "syscalls", | 497 | .system = "syscalls", |
| 498 | .reg = syscall_enter_register, | 498 | .reg = syscall_enter_register, |
| 499 | .define_fields = syscall_enter_define_fields, | 499 | .define_fields = syscall_enter_define_fields, |
| @@ -501,7 +501,7 @@ struct ftrace_event_class __refdata event_class_syscall_enter = { | |||
| 501 | .raw_init = init_syscall_trace, | 501 | .raw_init = init_syscall_trace, |
| 502 | }; | 502 | }; |
| 503 | 503 | ||
| 504 | struct ftrace_event_class __refdata event_class_syscall_exit = { | 504 | struct trace_event_class __refdata event_class_syscall_exit = { |
| 505 | .system = "syscalls", | 505 | .system = "syscalls", |
| 506 | .reg = syscall_exit_register, | 506 | .reg = syscall_exit_register, |
| 507 | .define_fields = syscall_exit_define_fields, | 507 | .define_fields = syscall_exit_define_fields, |
| @@ -584,7 +584,7 @@ static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id) | |||
| 584 | perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL); | 584 | perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL); |
| 585 | } | 585 | } |
| 586 | 586 | ||
| 587 | static int perf_sysenter_enable(struct ftrace_event_call *call) | 587 | static int perf_sysenter_enable(struct trace_event_call *call) |
| 588 | { | 588 | { |
| 589 | int ret = 0; | 589 | int ret = 0; |
| 590 | int num; | 590 | int num; |
| @@ -605,7 +605,7 @@ static int perf_sysenter_enable(struct ftrace_event_call *call) | |||
| 605 | return ret; | 605 | return ret; |
| 606 | } | 606 | } |
| 607 | 607 | ||
| 608 | static void perf_sysenter_disable(struct ftrace_event_call *call) | 608 | static void perf_sysenter_disable(struct trace_event_call *call) |
| 609 | { | 609 | { |
| 610 | int num; | 610 | int num; |
| 611 | 611 | ||
| @@ -656,7 +656,7 @@ static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) | |||
| 656 | perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL); | 656 | perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL); |
| 657 | } | 657 | } |
| 658 | 658 | ||
| 659 | static int perf_sysexit_enable(struct ftrace_event_call *call) | 659 | static int perf_sysexit_enable(struct trace_event_call *call) |
| 660 | { | 660 | { |
| 661 | int ret = 0; | 661 | int ret = 0; |
| 662 | int num; | 662 | int num; |
| @@ -677,7 +677,7 @@ static int perf_sysexit_enable(struct ftrace_event_call *call) | |||
| 677 | return ret; | 677 | return ret; |
| 678 | } | 678 | } |
| 679 | 679 | ||
| 680 | static void perf_sysexit_disable(struct ftrace_event_call *call) | 680 | static void perf_sysexit_disable(struct trace_event_call *call) |
| 681 | { | 681 | { |
| 682 | int num; | 682 | int num; |
| 683 | 683 | ||
| @@ -693,7 +693,7 @@ static void perf_sysexit_disable(struct ftrace_event_call *call) | |||
| 693 | 693 | ||
| 694 | #endif /* CONFIG_PERF_EVENTS */ | 694 | #endif /* CONFIG_PERF_EVENTS */ |
| 695 | 695 | ||
| 696 | static int syscall_enter_register(struct ftrace_event_call *event, | 696 | static int syscall_enter_register(struct trace_event_call *event, |
| 697 | enum trace_reg type, void *data) | 697 | enum trace_reg type, void *data) |
| 698 | { | 698 | { |
| 699 | struct trace_event_file *file = data; | 699 | struct trace_event_file *file = data; |
| @@ -721,7 +721,7 @@ static int syscall_enter_register(struct ftrace_event_call *event, | |||
| 721 | return 0; | 721 | return 0; |
| 722 | } | 722 | } |
| 723 | 723 | ||
| 724 | static int syscall_exit_register(struct ftrace_event_call *event, | 724 | static int syscall_exit_register(struct trace_event_call *event, |
| 725 | enum trace_reg type, void *data) | 725 | enum trace_reg type, void *data) |
| 726 | { | 726 | { |
| 727 | struct trace_event_file *file = data; | 727 | struct trace_event_file *file = data; |
