Lines Matching refs:ret
117 int i, ret, syscall; in print_syscall_enter() local
131 ret = trace_seq_printf(s, "%s(", entry->name); in print_syscall_enter()
132 if (!ret) in print_syscall_enter()
138 ret = trace_seq_printf(s, "%s ", entry->types[i]); in print_syscall_enter()
139 if (!ret) in print_syscall_enter()
143 ret = trace_seq_printf(s, "%s: %lx%s", entry->args[i], in print_syscall_enter()
146 if (!ret) in print_syscall_enter()
150 ret = trace_seq_putc(s, ')'); in print_syscall_enter()
151 if (!ret) in print_syscall_enter()
155 ret = trace_seq_putc(s, '\n'); in print_syscall_enter()
156 if (!ret) in print_syscall_enter()
171 int ret; in print_syscall_exit() local
187 ret = trace_seq_printf(s, "%s -> 0x%lx\n", entry->name, in print_syscall_exit()
188 trace->ret); in print_syscall_exit()
189 if (!ret) in print_syscall_exit()
268 int ret; in syscall_enter_define_fields() local
272 ret = trace_define_field(call, SYSCALL_FIELD(int, nr), FILTER_OTHER); in syscall_enter_define_fields()
273 if (ret) in syscall_enter_define_fields()
274 return ret; in syscall_enter_define_fields()
277 ret = trace_define_field(call, meta->types[i], in syscall_enter_define_fields()
284 return ret; in syscall_enter_define_fields()
290 int ret; in syscall_exit_define_fields() local
292 ret = trace_define_field(call, SYSCALL_FIELD(int, nr), FILTER_OTHER); in syscall_exit_define_fields()
293 if (ret) in syscall_exit_define_fields()
294 return ret; in syscall_exit_define_fields()
296 ret = trace_define_field(call, SYSCALL_FIELD(long, ret), in syscall_exit_define_fields()
299 return ret; in syscall_exit_define_fields()
339 static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret) in ftrace_syscall_exit() argument
366 entry->ret = syscall_get_return_value(current, regs); in ftrace_syscall_exit()
377 int ret = 0; in reg_event_syscall_enter() local
385 ret = register_trace_sys_enter(ftrace_syscall_enter, tr); in reg_event_syscall_enter()
386 if (!ret) { in reg_event_syscall_enter()
391 return ret; in reg_event_syscall_enter()
415 int ret = 0; in reg_event_syscall_exit() local
423 ret = register_trace_sys_exit(ftrace_syscall_exit, tr); in reg_event_syscall_exit()
424 if (!ret) { in reg_event_syscall_exit()
429 return ret; in reg_event_syscall_exit()
580 int ret = 0; in perf_sysenter_enable() local
587 ret = register_trace_sys_enter(perf_syscall_enter, NULL); in perf_sysenter_enable()
588 if (ret) { in perf_sysenter_enable()
596 return ret; in perf_sysenter_enable()
613 static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret) in perf_syscall_exit() argument
650 rec->ret = syscall_get_return_value(current, regs); in perf_syscall_exit()
658 int ret = 0; in perf_sysexit_enable() local
665 ret = register_trace_sys_exit(perf_syscall_exit, NULL); in perf_sysexit_enable()
666 if (ret) { in perf_sysexit_enable()
674 return ret; in perf_sysexit_enable()