Lines Matching refs:tr
130 struct trace_array *tr = iter->tr; in print_syscall_enter() local
157 if (tr && tr->trace_flags & TRACE_ITER_VERBOSE) in print_syscall_enter()
293 struct trace_array *tr = data; in ftrace_syscall_enter() local
307 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter()
334 struct trace_array *tr = data; in ftrace_syscall_exit() local
346 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit()
371 struct trace_array *tr = file->tr; in reg_event_syscall_enter() local
379 if (!tr->sys_refcount_enter) in reg_event_syscall_enter()
380 ret = register_trace_sys_enter(ftrace_syscall_enter, tr); in reg_event_syscall_enter()
382 rcu_assign_pointer(tr->enter_syscall_files[num], file); in reg_event_syscall_enter()
383 tr->sys_refcount_enter++; in reg_event_syscall_enter()
392 struct trace_array *tr = file->tr; in unreg_event_syscall_enter() local
399 tr->sys_refcount_enter--; in unreg_event_syscall_enter()
400 RCU_INIT_POINTER(tr->enter_syscall_files[num], NULL); in unreg_event_syscall_enter()
401 if (!tr->sys_refcount_enter) in unreg_event_syscall_enter()
402 unregister_trace_sys_enter(ftrace_syscall_enter, tr); in unreg_event_syscall_enter()
409 struct trace_array *tr = file->tr; in reg_event_syscall_exit() local
417 if (!tr->sys_refcount_exit) in reg_event_syscall_exit()
418 ret = register_trace_sys_exit(ftrace_syscall_exit, tr); in reg_event_syscall_exit()
420 rcu_assign_pointer(tr->exit_syscall_files[num], file); in reg_event_syscall_exit()
421 tr->sys_refcount_exit++; in reg_event_syscall_exit()
430 struct trace_array *tr = file->tr; in unreg_event_syscall_exit() local
437 tr->sys_refcount_exit--; in unreg_event_syscall_exit()
438 RCU_INIT_POINTER(tr->exit_syscall_files[num], NULL); in unreg_event_syscall_exit()
439 if (!tr->sys_refcount_exit) in unreg_event_syscall_exit()
440 unregister_trace_sys_exit(ftrace_syscall_exit, tr); in unreg_event_syscall_exit()