aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_syscalls.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-05-05 10:09:53 -0400
committerSteven Rostedt <rostedt@goodmis.org>2015-05-13 14:05:16 -0400
commit7f1d2f8210195c8c309d424a77dbf06a6d2186f4 (patch)
treebbe67b455947322f4f43d082c23a096a40d18824 /kernel/trace/trace_syscalls.c
parent9023c930902fbbcf0cebf6110828700f792989a4 (diff)
tracing: Rename ftrace_event_file to trace_event_file
The name "ftrace" really refers to the function hook infrastructure. It is not about the trace_events. The structure ftrace_event_file is really about trace events and not "ftrace". Rename it to trace_event_file. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r--kernel/trace/trace_syscalls.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index f97f6e3a676c..ee4525261e82 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -293,7 +293,7 @@ static int __init syscall_exit_define_fields(struct ftrace_event_call *call)
293static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id) 293static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id)
294{ 294{
295 struct trace_array *tr = data; 295 struct trace_array *tr = data;
296 struct ftrace_event_file *ftrace_file; 296 struct trace_event_file *trace_file;
297 struct syscall_trace_enter *entry; 297 struct syscall_trace_enter *entry;
298 struct syscall_metadata *sys_data; 298 struct syscall_metadata *sys_data;
299 struct ring_buffer_event *event; 299 struct ring_buffer_event *event;
@@ -308,11 +308,11 @@ static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id)
308 return; 308 return;
309 309
310 /* Here we're inside tp handler's rcu_read_lock_sched (__DO_TRACE) */ 310 /* Here we're inside tp handler's rcu_read_lock_sched (__DO_TRACE) */
311 ftrace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); 311 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]);
312 if (!ftrace_file) 312 if (!trace_file)
313 return; 313 return;
314 314
315 if (ftrace_trigger_soft_disabled(ftrace_file)) 315 if (ftrace_trigger_soft_disabled(trace_file))
316 return; 316 return;
317 317
318 sys_data = syscall_nr_to_meta(syscall_nr); 318 sys_data = syscall_nr_to_meta(syscall_nr);
@@ -334,14 +334,14 @@ static void ftrace_syscall_enter(void *data, struct pt_regs *regs, long id)
334 entry->nr = syscall_nr; 334 entry->nr = syscall_nr;
335 syscall_get_arguments(current, regs, 0, sys_data->nb_args, entry->args); 335 syscall_get_arguments(current, regs, 0, sys_data->nb_args, entry->args);
336 336
337 event_trigger_unlock_commit(ftrace_file, buffer, event, entry, 337 event_trigger_unlock_commit(trace_file, buffer, event, entry,
338 irq_flags, pc); 338 irq_flags, pc);
339} 339}
340 340
341static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) 341static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret)
342{ 342{
343 struct trace_array *tr = data; 343 struct trace_array *tr = data;
344 struct ftrace_event_file *ftrace_file; 344 struct trace_event_file *trace_file;
345 struct syscall_trace_exit *entry; 345 struct syscall_trace_exit *entry;
346 struct syscall_metadata *sys_data; 346 struct syscall_metadata *sys_data;
347 struct ring_buffer_event *event; 347 struct ring_buffer_event *event;
@@ -355,11 +355,11 @@ static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret)
355 return; 355 return;
356 356
357 /* Here we're inside tp handler's rcu_read_lock_sched (__DO_TRACE()) */ 357 /* Here we're inside tp handler's rcu_read_lock_sched (__DO_TRACE()) */
358 ftrace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); 358 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]);
359 if (!ftrace_file) 359 if (!trace_file)
360 return; 360 return;
361 361
362 if (ftrace_trigger_soft_disabled(ftrace_file)) 362 if (ftrace_trigger_soft_disabled(trace_file))
363 return; 363 return;
364 364
365 sys_data = syscall_nr_to_meta(syscall_nr); 365 sys_data = syscall_nr_to_meta(syscall_nr);
@@ -380,11 +380,11 @@ static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret)
380 entry->nr = syscall_nr; 380 entry->nr = syscall_nr;
381 entry->ret = syscall_get_return_value(current, regs); 381 entry->ret = syscall_get_return_value(current, regs);
382 382
383 event_trigger_unlock_commit(ftrace_file, buffer, event, entry, 383 event_trigger_unlock_commit(trace_file, buffer, event, entry,
384 irq_flags, pc); 384 irq_flags, pc);
385} 385}
386 386
387static int reg_event_syscall_enter(struct ftrace_event_file *file, 387static int reg_event_syscall_enter(struct trace_event_file *file,
388 struct ftrace_event_call *call) 388 struct ftrace_event_call *call)
389{ 389{
390 struct trace_array *tr = file->tr; 390 struct trace_array *tr = file->tr;
@@ -405,7 +405,7 @@ static int reg_event_syscall_enter(struct ftrace_event_file *file,
405 return ret; 405 return ret;
406} 406}
407 407
408static void unreg_event_syscall_enter(struct ftrace_event_file *file, 408static void unreg_event_syscall_enter(struct trace_event_file *file,
409 struct ftrace_event_call *call) 409 struct ftrace_event_call *call)
410{ 410{
411 struct trace_array *tr = file->tr; 411 struct trace_array *tr = file->tr;
@@ -422,7 +422,7 @@ static void unreg_event_syscall_enter(struct ftrace_event_file *file,
422 mutex_unlock(&syscall_trace_lock); 422 mutex_unlock(&syscall_trace_lock);
423} 423}
424 424
425static int reg_event_syscall_exit(struct ftrace_event_file *file, 425static int reg_event_syscall_exit(struct trace_event_file *file,
426 struct ftrace_event_call *call) 426 struct ftrace_event_call *call)
427{ 427{
428 struct trace_array *tr = file->tr; 428 struct trace_array *tr = file->tr;
@@ -443,7 +443,7 @@ static int reg_event_syscall_exit(struct ftrace_event_file *file,
443 return ret; 443 return ret;
444} 444}
445 445
446static void unreg_event_syscall_exit(struct ftrace_event_file *file, 446static void unreg_event_syscall_exit(struct trace_event_file *file,
447 struct ftrace_event_call *call) 447 struct ftrace_event_call *call)
448{ 448{
449 struct trace_array *tr = file->tr; 449 struct trace_array *tr = file->tr;
@@ -696,7 +696,7 @@ static void perf_sysexit_disable(struct ftrace_event_call *call)
696static int syscall_enter_register(struct ftrace_event_call *event, 696static int syscall_enter_register(struct ftrace_event_call *event,
697 enum trace_reg type, void *data) 697 enum trace_reg type, void *data)
698{ 698{
699 struct ftrace_event_file *file = data; 699 struct trace_event_file *file = data;
700 700
701 switch (type) { 701 switch (type) {
702 case TRACE_REG_REGISTER: 702 case TRACE_REG_REGISTER:
@@ -724,7 +724,7 @@ static int syscall_enter_register(struct ftrace_event_call *event,
724static int syscall_exit_register(struct ftrace_event_call *event, 724static int syscall_exit_register(struct ftrace_event_call *event,
725 enum trace_reg type, void *data) 725 enum trace_reg type, void *data)
726{ 726{
727 struct ftrace_event_file *file = data; 727 struct trace_event_file *file = data;
728 728
729 switch (type) { 729 switch (type) {
730 case TRACE_REG_REGISTER: 730 case TRACE_REG_REGISTER: